From 7474e1003195b2806dc8751671046153ce1f948d Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 2 May 2026 08:28:47 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Filme-Standardsortierung=20=E2=86=92=20I?= =?UTF-8?q?MDb=20DESC,=20Erscheinungsjahr=20DESC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routes/movies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/movies.py b/backend/routes/movies.py index d8684a7..e4f306e 100644 --- a/backend/routes/movies.py +++ b/backend/routes/movies.py @@ -243,7 +243,7 @@ _SORT_COLS = { "jahr_asc": "m.jahr ASC", "imdb": "m.imdb_rating DESC", "bewertung": "community_avg DESC", - "default": "m.sort_order ASC, m.jahr DESC", + "default": "CASE WHEN m.imdb_rating IS NULL THEN 1 ELSE 0 END, m.imdb_rating DESC, m.jahr DESC", } @router.get("/filme")