Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You use the ORDER BY clause to sort the rows retrieved from the database. The ORDER BY clause may specify one or more columns on which to sort the data and must follow the FROM clause or the WHERE clause (if a WHERE clause is supplied).
The following example uses the ORDER BY clause to sort the last_name column values from the customers table: