From 3811e475933fcbbb0663c88a8b201c1e2ff613b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Musil?= Date: Tue, 12 May 2026 09:46:22 +0200 Subject: [PATCH] Sort menu items by number only, sold-out last Co-Authored-By: Claude Sonnet 4.6 --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index eed7ba4..0b2ada4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,6 @@ function formatMenu(menu: ParsedMenu): string { const sorted = [...menu.items].sort((a, b) => { if (a.inactive !== b.inactive) return a.inactive ? 1 : -1 - if (a.price !== b.price) return a.price - b.price const na = parseInt(a.name.match(/^(\d+)\./)?.[1] ?? "99", 10) const nb = parseInt(b.name.match(/^(\d+)\./)?.[1] ?? "99", 10) return na - nb