fixed a bug that asc/desc doesn't work