Sorting Results with ORDER BY in MySQL

Published September 25, 2026 By Sai Sree Ram Gundepudi

Example

SELECT * FROM employees ORDER BY salary DESC;

You can sort by multiple columns using commas.

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article