Fixed sorting direction changing button bug