fix parser for sorting asc/desc