human
How do I sort a list of dictionaries by values of the dictionary in Python?
assistant
Here is some code to sort a list of dictionaries `l` by values in key `name` in descending order

newlist = sorted(l, key=itemgetter('name'), reverse=True)

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