From f1eee97d46f860d9a24481cabb0f357b7eb7c5bf Mon Sep 17 00:00:00 2001 From: Spythere Date: Thu, 15 Jan 2026 17:30:35 +0100 Subject: [PATCH] chore(stations): added sorting by dispatcher language id --- src/components/StationsView/utils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/StationsView/utils.ts b/src/components/StationsView/utils.ts index 8fa7278..f280939 100644 --- a/src/components/StationsView/utils.ts +++ b/src/components/StationsView/utils.ts @@ -210,6 +210,11 @@ export const sortStations = (a: Station, b: Station, sorter: ActiveSorter) => { diff = (a.onlineInfo?.dispatcherExp || 0) - (b.onlineInfo?.dispatcherExp || 0); break; + case 'dispatcher-lang': + diff = + (a.onlineInfo?.dispatcherLanguageId ?? -1) - (b.onlineInfo?.dispatcherLanguageId ?? -1); + break; + case 'routes-single': diff = (a.generalInfo?.routes.single.filter((r) => !r.hidden && !r.isInternal).length ?? -1) -