aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Backend/Controllers/ArrivalsController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Enmarcha.Backend/Controllers/ArrivalsController.cs')
-rw-r--r--src/Enmarcha.Backend/Controllers/ArrivalsController.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Enmarcha.Backend/Controllers/ArrivalsController.cs b/src/Enmarcha.Backend/Controllers/ArrivalsController.cs
index b93b3c9..5c64efa 100644
--- a/src/Enmarcha.Backend/Controllers/ArrivalsController.cs
+++ b/src/Enmarcha.Backend/Controllers/ArrivalsController.cs
@@ -157,10 +157,7 @@ public partial class ArrivalsController : ControllerBase
Longitude = stop.Lon
},
Routes = [.. stop.Routes
- .OrderBy(
- r => r.ShortName,
- Comparer<string?>.Create(SortingHelper.SortRouteShortNames)
- )
+ .OrderBy(r => SortingHelper.GetRouteSortKey(r.ShortName, r.GtfsId))
.Select(r => new RouteInfo
{
GtfsId = r.GtfsId,