sorting one list to match another in python,"sorted(objects, key=lambda x: idmap[x['id']])"