A SQL SELECT query with the ORDER BY clause returns a result set with the rows sorted by the values of one or more columns. Expressions like as column names, user-defined functions, arithmetic operations, and CASE expressions can be used as sort criteria.