diff --git a/api/advent22_api/routers/general.py b/api/advent22_api/routers/general.py index 7b2cf3b..c156c50 100644 --- a/api/advent22_api/routers/general.py +++ b/api/advent22_api/routers/general.py @@ -45,5 +45,8 @@ async def put_doors( Türchen setzen """ - cfg.puzzle.doors = doors + cfg.puzzle.doors = sorted( + doors, + key=lambda door: door.day, + ) await set_config(cfg)