DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python order list of dictionaries by value
newlist = sorted(list_to_be_sorted, key=lambda d: d['name'])
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#order
#list
#dictionaries
ADD COMMENT
Topic
COMMENT
Name
2+7 =
Submit