Language: SQL. The pull request has one bug. You get three tries to find the line, then a short debrief.
Partners can now download a shop's whole order history through the API, 100 orders per page, newest first. The sort order is always the same (id decides between equal timestamps), and an index matches the ORDER BY exactly, so every page is a cheap index scan.
Codetrap needs JavaScript: the code review happens in your browser.