Multiple sort in admin changelist
|Reported by:||Ben Davis||Owned by:||Ben Davis|
|Severity:||Normal||Keywords:||admin sort multisort ordering order|
|Cc:||andy@…, Patrick Kranzlmueller, idan@…, Andy Baker||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I've made an attempt at adding multiple sort columns to the admin changelist. I'm basically putting this up here as an initial proposal of what I think would be a good starting point for a UI for multiple column sorting.
The idea is that each time you click on a header, it toggles between three states, "ascending", "descending", and "cleared". The order in which multiple columns are sorted are denoted by a small number next to the up/down icon. So (for example) to sort by
('last_name', 'first_name'), you click on the "last name" column, then the "first name" column. To change that to
('-last_name', 'first_name') you would click once more on the "last name" column. Clicking "last name" again would set the ordering to just
This patches cleanly against r10843. Testers are always appreciated.
Change History (53)
comment:20 follow-up: 21 Changed 6 years ago by
|Patch needs improvement:||unset|