Sort the output of #SQL queries with
ORDER BY exp1, exp2, ...
This sorts in ascending order: low to high, A-Z
For high to low, use
ORDER BY exp DESC
Rows with ties for exp1 are then sorted by exp2, etc.
The order is undefined for rows with the same value for all exps
about 1 month ago