Sorting Data with ORDER BY Clause In SQL
The ORDER BY clause is used in SQL queries to sort the result set based on one or more columns. It arranges the rows returned by a query in ascending or descending order according to the values in the specified column(s).