ORDER BY category ASC, amount DESC places text categories alphabetically and sorts amounts high-to-low inside each category.
highlighted = computed this step
Input table
Start with the same order rows, mixed across categories and amounts.
Orders
Order query
Sort text categories alphabetically first, then sort amount high-to-low within each category.
ORDER BY category ASC, amount DESC
Ordered output
Rows appear by category, with larger amounts before smaller amounts inside the same category.
category then amount order