The ORDER BY clause is used to sort results by one or more columns. By default, it sorts in ascending order (ASC), but we can also use descending order (DESC).
In PDO, we execute this with a simple query() statement and then output the sorted data
using a loop. This is extremely useful when displaying lists of users or products.
ASC sorts from A to Z or from smallest to largest.DESC sorts from Z to A or from largest to smallest.