KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do you define a specific ordering in Django QuerySet s? Specifically, if I have a QuerySet like so: ['a10', 'a1', 'a2'] . Regular order (using Whatever.objects.order_by('someField') ) will give me ['a1', 'a10', 'a2'] , while I am looking for: ['a1', 'a2', 'a10'] . What is the proper way to define my own ordering technique?
Tags (comma-separated)
Save Edits
Cancel