Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort list of dictionaries by key python

newlist = sorted(list_to_be_sorted, key=lambda k: k['name']) 
 
PREVIOUS NEXT
Tagged: #sort #list #dictionaries #key #python
ADD COMMENT
Topic
Name
2+6 =