python oder dictenary list code example
Example 1: sort list of dictionaries by key python
newlist = sorted(list_to_be_sorted, key=lambda k: k['name'])
Example 2: python get dictionary keys sorted by value
sorted(A, key=A.get)
newlist = sorted(list_to_be_sorted, key=lambda k: k['name'])
sorted(A, key=A.get)