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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzA4NzgsIm5iZiI6MTczOTMzMDU3OCwicGF0aCI6Ii82NjkzNDE5NC8zMjgwOTYyOTItMWVmODgxN2MtMjZmNS00OWEzLWFjYzctZTJiMDJlNWExODNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAzMjI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkZmRjMGQ5YWYyNzJhY2I5NTZmZWY2ZGI3MjY3NzdhNjMzMGM1MDBjY2MxMjRhM2E4NGU3YjcyMWM4NWU2YmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9iZIBwr7dO0ydbY2niw8NUTIGc5Gj7CcBNrSYjjS4Ng)
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