human
sorting list of nested dictionaries in python
assistant
Here is some code to sort list of nested dictionaries `yourdata` in reverse order of 'key' and 'subkey'

yourdata.sort(key=lambda e: e['key']['subkey'], reverse=True)

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