def reorder_to(l, order):
 return [el[1] for el in sorted(zip(order, l), key=(lambda el: el[0]))]

def reorder_to ( l , order ) : return [ el [ 1 ] for el in sorted ( zip ( order , l ) , key = ( lambda el : el [ 0 ] ) ) ]
returns a list .