Window Functions in PostgreSQL

There's a class of question that `GROUP BY` can't answer without contortions. Rank each customer's orders from newest to oldest. Show each order next to that customer's running total.