diff --git a/pages/incidents.tsx b/pages/incidents.tsx index 977967c..9feb9c8 100644 --- a/pages/incidents.tsx +++ b/pages/incidents.tsx @@ -40,6 +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)) } function getPrevNextMonth(monthStr: string) {