How to sort a list according to another list?,a.sort(key=lambda x_y: b.index(x_y[0]))