human
sorting list of nested dictionaries in python
assistant
Here is some code to sort list of nested dictionaries `yourdata` in reverse based on values associated with each dictionary's key 'subkey'

sorted(yourdata, key=lambda d: d.get('key', {}).get('subkey'), reverse=True)

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