changes list elements order.