Timeline for Sort a list by multiple attributes?
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 1, 2023 at 10:07 | answer | added | pymen | timeline score: 0 | |
Aug 14, 2021 at 13:42 | comment | added | user202729 | If the sorting order from the two keys are different, refer to: sorting - sort Python list with two keys but only one in reverse order - Stack Overflow or a comment under the currently accepted answer | |
Jul 12, 2021 at 15:44 | answer | added | ListenSoftware Louise Ai Agent | timeline score: 7 | |
Jul 24, 2020 at 9:37 | answer | added | baz | timeline score: 0 | |
May 21, 2019 at 14:16 | answer | added | ron_g | timeline score: 26 | |
Oct 24, 2018 at 22:21 | comment | added | Mateen Ulhaq |
If you use tuples instead of lists, python orders sorts by entries from left to right when you run sort . That is, sorted([(4, 2), (0, 3), (0, 1)]) == [(0, 1), (0, 3), (4, 2)] .
|
|
Apr 24, 2018 at 22:43 | history | protected | eyllanesc | ||
Jan 27, 2018 at 2:54 | answer | added | Dominic Suciu | timeline score: 2 | |
Aug 15, 2017 at 15:36 | answer | added | UpAndAdam | timeline score: 7 | |
S Oct 20, 2016 at 11:06 | history | suggested | Chris_Rands | CC BY-SA 3.0 |
condensing and formating example
|
Oct 20, 2016 at 9:29 | review | Suggested edits | |||
S Oct 20, 2016 at 11:06 | |||||
Jul 13, 2016 at 15:02 | comment | added | mbomb007 | Related PPCG question | |
Apr 22, 2016 at 1:20 | answer | added | Clint Blatchford | timeline score: 58 | |
S Apr 16, 2013 at 22:02 | history | suggested | LJNielsenDk |
Adding tag: [sorting]
|
|
Apr 16, 2013 at 21:58 | review | Suggested edits | |||
S Apr 16, 2013 at 22:02 | |||||
Nov 20, 2010 at 15:49 | vote | accept | headache | ||
Nov 20, 2010 at 15:32 | answer | added | Mark Byers | timeline score: 1235 | |
Nov 20, 2010 at 15:30 | history | asked | headache | CC BY-SA 2.5 |