human
Sorting a list of dicts by dict values
assistant
Here is some code to sorting a list of dictionary `a` by values in descending order

sorted(a, key=dict.values, reverse=True)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.