Skip to content

How to use fields_default_sort to sort descending of a field? #600

Answered by jowilf
talischeung-ecg asked this question in Q&A
Discussion options

You must be logged in to vote

As described in the documentation , you need to set the second parameter to true for descending order

   fields_default_sort = [("id", True)]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by talischeung-ecg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants