Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort list of list of dictionaries python

sort_list = sorted(list_cities, key=lambda k: k[-1]['distance'])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #list #list #dictionaries #python
ADD COMMENT
Topic
Name
2+4 =