human
How to sort Counter by value? - python
assistant
Here is some code to reverse sort Counter `x` by values

sorted(x, key=x.get, reverse=True)

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