From ef7687079402966df9a30d80460201aad27027ed Mon Sep 17 00:00:00 2001 From: Bennet Gallein Date: Sun, 25 May 2025 22:39:18 +0200 Subject: [PATCH] fix: fix sorting --- pages/incidents.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/incidents.tsx b/pages/incidents.tsx index 9feb9c8..51904c4 100644 --- a/pages/incidents.tsx +++ b/pages/incidents.tsx @@ -40,7 +40,7 @@ function filterIncidentsByMonth( ...e, monitors: (e.monitors || []).map((e) => workerConfig.monitors.find((mon) => mon.id === e)!), })) - .sort((a, b) => (new Date(a.start) > new Date(b.start) ? 1 : -1)) + .sort((a, b) => (new Date(a.start) > new Date(b.start) ? -1 : 1)) } function getPrevNextMonth(monthStr: string) {