From c91fdec53d82191463123f1403f3a9a647895d17 Mon Sep 17 00:00:00 2001 From: moshefortgang Date: Tue, 21 Nov 2023 12:33:11 +0200 Subject: [PATCH] Replace sort by date and remove reversed --- src/pages/dashboard/ArrivalByTimeChart/ArrivalByTimeChart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/dashboard/ArrivalByTimeChart/ArrivalByTimeChart.tsx b/src/pages/dashboard/ArrivalByTimeChart/ArrivalByTimeChart.tsx index 77c234f1..85e7e4ef 100644 --- a/src/pages/dashboard/ArrivalByTimeChart/ArrivalByTimeChart.tsx +++ b/src/pages/dashboard/ArrivalByTimeChart/ArrivalByTimeChart.tsx @@ -53,7 +53,7 @@ export default function ArrivalByTimeChart({ (a.gtfs_route_date > b.gtfs_route_date ? 1 : -1)) + .sort((a, b) => (a.gtfs_route_date < b.gtfs_route_date ? 1 : -1)) .sort((a, b) => (a.gtfs_route_hour > b.gtfs_route_hour ? 1 : -1))} margin={{ top: 5, @@ -62,7 +62,7 @@ export default function ArrivalByTimeChart({ bottom: 5, }}> - +