change order with sorting