update sorting.