Skip to content
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

Add sorting for Collections table #146

Open
MaciejWiczk opened this issue Jan 14, 2020 · 2 comments · May be fixed by #450
Open

Add sorting for Collections table #146

MaciejWiczk opened this issue Jan 14, 2020 · 2 comments · May be fixed by #450
Assignees
Labels
enhancement New feature or request javascript Pull requests that update Javascript code python Pull requests that update Python code

Comments

@MaciejWiczk
Copy link
Collaborator

Similar to #132, soting collection table would be nice addition to UI.Since Collection Table is paged, this one has to be done on API. Two parameters to be added to endpoint:

  • sort_by with field used for ordering
  • desc or descending for orderind direction
@MaciejWiczk MaciejWiczk added enhancement New feature or request javascript Pull requests that update Javascript code python Pull requests that update Python code labels Jan 14, 2020
@pbylicki
Copy link
Owner

@MaciejWiczk I think this one should be done in a generic way that could be used for collections and keywords and potentially new resources in the API. I would do it like in Django Rest Framework, with url parameter order=-field where optional minus would indicate descending order. We could even allow multiple parameters provided with order=field1&order=field2

@pbylicki pbylicki self-assigned this Jan 14, 2020
@MaciejWiczk
Copy link
Collaborator Author

I didn't know DRF was working that way. I agree with that approach fully.

@MaciejWiczk MaciejWiczk linked a pull request Dec 3, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code python Pull requests that update Python code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants