Sort a list of Python dictionaries by a value in dictionary

Sort a list of Python dictionaries by a value in dictionary

Use the sorted keyword along with operator itemgetter to sort dictionaries based on key values.