fix revers sorting