From edaca815a7aae895836800726c96dba3d5e4b08f Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Mon, 29 Jun 2026 15:51:36 -0500 Subject: [PATCH] sortierung nach DAtum --- app/components/KoFixtures.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/components/KoFixtures.tsx b/app/components/KoFixtures.tsx index da9bec6..b98b19d 100644 --- a/app/components/KoFixtures.tsx +++ b/app/components/KoFixtures.tsx @@ -46,14 +46,7 @@ export default function KoFixtures({ teams, matches }: { teams: Team[]; matches: teams.some(t => t.id === m.homeTeamId) && teams.some(t => t.id === m.awayTeamId), ) - .sort((a, b) => { - // Live zuerst - const aLive = isLive(a) ? 1 : 0; - const bLive = isLive(b) ? 1 : 0; - if (aLive !== bLive) return bLive - aLive; - // Innerhalb Live/Upcoming/Finished: Datum aufsteigend - return +new Date(a.utcDate) - +new Date(b.utcDate); - }); + .sort((a, b) => +new Date(a.utcDate) - +new Date(b.utcDate)); }, [matches, teams]); // Lokale Datums-Extraktion (vermeidet UTC-Tagesverschiebung bei US-Spielen)