ORDER BY
A SQL clause that sorts results in ascending or descending order.
ORDER BY lets you organize results by one or more columns, often with ASC (ascending) or DESC (descending). Without ORDER BY, the database returns rows in arbitrary order — typically physical storage order. Historically, ORDER BY was one of the first SQL operations that required actual optimization; performance would be abysmal on large datasets without clever indexing.