def do_thing(dct):
    lst = dct['outer_list']
for obj in lst:
    obj['nested_list'].sort(key=lambda d: int(d['id']))
lst.sort(key=lambda d: d['name'])
sort on multiple parameters in list of dictionaries/lists