ORDER BY Keywords are used to sort the data in the record set
Keywords used for sorting:
Keywords | Description |
asc | Sort in ascending order, from small to large (default) |
desc | Descending order, from large to small |
## Syntax example:
Category | Detailed explanation |
select field from table order by field sort keyword | |
select id,Age from Myguests order by Age desc; | |
Query the id and Age fields in the Myguests table and sort them in descending order |