Skip to main content
ORDER BY sorts the results. Name a column and a direction: DESC for largest first, ASC for smallest first. Leave the direction out and it’s ASC.
Sort by more than one column to break ties:
Sorting decides which rows LIMIT keeps. On the report page, clicking a column heading changes the sort.