fix order by AST conversion