Summary
In SQL, the ORDER BY clause doesn't have to be a column; it can be an expression whose output can be ordered. An example is ordering sales in a decreasing manner but showing 'direct' sales first. This is done using a CASE WHEN statement that ranks direct sales above other sales types, followed by sorting sales in a decreasing order.