Sort by nested numeric score
Input
sort_by_nested([{'name':'alice','stats':{'score':10}},{'name':'bob','stats':{'score':5}}], ['stats','score'])
Output
[{'name': 'bob', 'stats': {'score': 5}}, {'name': 'alice', 'stats': {'score': 10}}]
Sort ascending by stats->score