Created
July 17, 2015 18:11
-
-
Save brent-hoover/d4df76b33394de35e3b1 to your computer and use it in GitHub Desktop.
Sorting a list of dictionaries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sorted_locations = sorted(locations, key=lambda l: l['address']['distance']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment