Skip to content

Past contests : Sort by most recent #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SathyaJayabal opened this issue Aug 6, 2020 · 2 comments
Closed

Past contests : Sort by most recent #260

SathyaJayabal opened this issue Aug 6, 2020 · 2 comments

Comments

@SathyaJayabal
Copy link
Collaborator

All tasks are displayed first in Past Challenges instead of sorted by most recent.

@rootelement
Copy link
Contributor

I think this is a frontend issue. There is ?sortBy= and ?sortOrder=

And you can sortBy these properties:

  • 'updatedBy',
  • 'updated',
  • 'createdBy',
  • 'created',
  • 'endDate',
  • 'startDate',
  • 'projectId',
  • 'name',
  • 'typeId'

The only thing I'm sure it can't do is sort by multiple fields.

It looks like the Frontend is currently calling:
https://api.topcoder.com/v5/challenges/?status=Completed&perPage=99&page=1

I'm thinking it should be:
https://api.topcoder.com/v5/challenges/?status=Completed&perPage=99&page=1&sortBy=createdBy&sortOrder=DESC but i'm not certain on the sortOrder

@SathyaJayabal
Copy link
Collaborator Author

tracking this on the community app repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants