sorting direction updated