update the order on sort