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

Ability to sort by more than one column #197

Open
simonw opened this issue Apr 9, 2018 · 0 comments · May be fixed by #1399
Open

Ability to sort by more than one column #197

simonw opened this issue Apr 9, 2018 · 0 comments · May be fixed by #1399
Labels

Comments

@simonw
Copy link
Owner

simonw commented Apr 9, 2018

Split off from #189.

I'd like to support "sort by X descending, then by Y ascending if there are dupes for X" as well. Suggested syntax for that:

?_sort_desc=X&_sort=Y

we currently only allow one argument to be sent. We should allow as many arguments as there are columns, for example:

?_sort=department&_sort_desc=precinct&_sort=age&_sort_desc=size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant