Language: TypeScript. The pull request has one bug. You get three tries to find the line, then a short debrief.
The product list can now be sorted by price, by name or by newest. Without a sort parameter it keeps the editors' order, which the home page shows as "Editor's picks". All products are cached in memory for a minute, so sorting costs no database query.
Codetrap needs JavaScript: the code review happens in your browser.