Sort Query is not returning result as expected. #32
Unanswered
harshalizode
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have the Permission Model as:
I am trying to sort the permissions in Ascending order.
await Permission.objects.sort("idx", Order.ASCENDING).values(["idx"])
But I am getting the result as
![sort issue](https://private-user-images.githubusercontent.com/66934194/328096292-1ef8817c-26f5-49a3-acc7-e2b02e5a183f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NjI3OTMsIm5iZiI6MTczODk2MjQ5MywicGF0aCI6Ii82NjkzNDE5NC8zMjgwOTYyOTItMWVmODgxN2MtMjZmNS00OWEzLWFjYzctZTJiMDJlNWExODNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDIxMDgxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzNGFiYmYyZTMyZWQ5NTlhMGQxNGE5MzQxNTgyMDc4MTNjZDQwNWIxZWUzMDNmMjk2NTIxMjQ1YmQyMjJiOGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tocHmlYg-2Hnnxb4LN8lLkchbTOeg4toKkFIZrChDxM)
Can you confirm that this is an issue or a mistake that occurred while running the query?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions