Now on Omarchy: read the manual without leaving your desktop
Your code SQL
-- Return item, amount, and each order's rank by amount, highest first, as `rank`.
SELECT item, amount FROM orders;