update sorting