fix report sort

This commit is contained in:
2025-12-27 17:40:06 +01:00
parent 46e0ad1fc6
commit ab3e4bd543

View File

@@ -29,8 +29,8 @@
$reports = $reports.toSorted( $reports = $reports.toSorted(
(a, b) => (a, b) =>
['open', 'closed', null].indexOf(a.status?.status ?? null) - [null, 'open', 'closed'].indexOf(a.status?.status ?? null) -
['open', 'closed', null].indexOf(b.status?.status ?? null) [null, 'open', 'closed'].indexOf(b.status?.status ?? null)
); );
}); });
</script> </script>