from operator import itemgetter sorted_list = sorted(list, key=itemgetter('key'), reverse=True)
It is convenient to be able to specify ascending and descending order by specifying reverse.
Recommended Posts