We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At the moment to specify the order of a set of results we'd do something like:
articles = Ariticle.many(sort=[('publish_date', DESC), ('title', ASC)])
I think it would be a useful addition to the query builder if we would instead build these sort lists along the lines that we build queries, e.g:
articles = Ariticle.many(sort=[Q.publish_date.desc, Q.title])
The text was updated successfully, but these errors were encountered:
This functionality is now supported using the SortBy function, for example:
SortBy
articles = Ariticle.many(sort=SortBy(Q.publish_date.desc, Q.title))
Sorry, something went wrong.
anthonyjb
No branches or pull requests
At the moment to specify the order of a set of results we'd do something like:
I think it would be a useful addition to the query builder if we would instead build these sort lists along the lines that we build queries, e.g:
The text was updated successfully, but these errors were encountered: