Timeline for Sort a list by multiple attributes?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 18, 2021 at 19:59 | comment | added | UpAndAdam | We clearly have very different views on beautiful. While it does the job that is fugliest thing I have ever seen. And the efficiency becomes a function of (n*m) where m is number of attributes to sort on instead of just a function of the length of the list. i would think other answers here have better solutions or you could write your own sort function to do it yourself if you really needed that behavior | |
Feb 9, 2021 at 13:03 | comment | added | Razzle Shazl | @mhn_namak see stackoverflow.com/a/55866810/2359945 which is a beautiful way to sort on n criteria, each in either ascending or descending. | |
Feb 4, 2020 at 16:22 | history | edited | UpAndAdam | CC BY-SA 4.0 |
typo
|
Feb 3, 2020 at 22:18 | comment | added | mhn_namak | Nice work. What if the attributes should be sorted in different orders? Suppose attrA should be sorted ascending and attrB descending? Is there a quick solution on top of this? Thanks! | |
Aug 15, 2017 at 15:36 | history | answered | UpAndAdam | CC BY-SA 3.0 |