The ORDER BY clause is used to force the query result to be sorted based on one or more column values. You can select either ascending or descending sort for each named column.
List the names and IDs of all faculty members arranged in alphabetical order.
SELECT FACID, FACNAME FROM FACULTY ORDER BY FACNAME;
List names and IDs of faculty members. The primary sort is the name and the secondary sort is by descending ID (for seniority purposes).
SELECT FACID, FACNAME FROM FACULTY ORDER BY FACNAME, FACID DESC;