Sql: how to use the order by clause to sort results?

Example:

SELECT * FROM employees ORDER BY last_name;
The ORDER BY keyword is used to sort the result set based on one or more columns.

Solution:

SELECT * FROM employees ORDER BY department, salary DESC;

Beginner's Guide to SQL