fix: add sorting by date

pull/113/head
Bennet Gallein 2025-05-25 20:06:33 +02:00
parent 777366b3fa
commit 199ca58ad8
No known key found for this signature in database
GPG Key ID: 54F2DF6954E8C635
1 changed files with 1 additions and 0 deletions

View File

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