MySQL also allows us to sort the groups in ascending or descending orders while the standard SQL does not. The default order is ascending. For example, if we want to get the number of orders per order status and sort the order status in descending order, we can use the GROUP BY clause with DESC as the following query: