From ee6409a40d1d9accbe92ffe6c55f29d45d754437 Mon Sep 17 00:00:00 2001 From: neingeist Date: Wed, 8 Apr 2026 22:12:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20sort=20csv=20by=20recipe=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fruehstueck.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fruehstueck.py b/fruehstueck.py index 021562f..f0a3186 100644 --- a/fruehstueck.py +++ b/fruehstueck.py @@ -81,6 +81,7 @@ def main(): with open(os.path.join(OUTDIR_JSON, json_file), "r", encoding="utf-8") as f: data = json.load(f) recipes.append(data) + recipes.sort(key=lambda r: r["name"]) # filter "Frühstück" recipes = [r for r in recipes if any(k["name"] == "Fr\u00fchst\u00fcck" for k in r["keywords"])]