intent: how do I sort a python list of dictionaries given a list of ids with the desired order?
rewritten_intent: sort list `users` using values associated with key 'id' according to elements in list `order`
snippet: users.sort(key=lambda x: order.index(x['id']))