human
Sort a list of dictionary provided an order
assistant
Here is some code to sort a list of dictionaries `list_of_dct` by values in an order `order`

sorted(list_of_dct, key=lambda x: order.index(list(x.values())[0]))

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