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) {