add ORDER BY to query