⇤ ← Revision 1 as of 2003-11-21 19:31:10
526
Comment: sorting by converting to (key,dict), then sorting, then converting back to dict
|
579
Question: This a good way?
|
Deletions are marked like this. | Additions are marked like this. |
Line 26: | Line 26: |
== Questions == This a good way? -- LionKimbro |
Sorting Lists of Dictionaries
Frequently you want to sort a list of dictionaries, based on some particular key.
For example:
There are many ways to do this; Here's one way I've been doing it:
Questions
This a good way? -- LionKimbro