how to rank dicts in list based on value python code example
Example: sort list of dictionaries python by value
newlist = sorted(list_to_be_sorted, key=lambda k: k['name'])
newlist = sorted(list_to_be_sorted, key=lambda k: k['name'])