fix: fix sorting

pull/113/head
Bennet Gallein 2025-05-25 22:39:18 +02:00
parent 199ca58ad8
commit ef76870794
No known key found for this signature in database
GPG Key ID: 54F2DF6954E8C635
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ function filterIncidentsByMonth(
...e, ...e,
monitors: (e.monitors || []).map((e) => workerConfig.monitors.find((mon) => mon.id === 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) { function getPrevNextMonth(monthStr: string) {