Add ORDER BY clauses to SELECT queries