diff --git a/client/src/components/Map/RouteCalculator.ts b/client/src/components/Map/RouteCalculator.ts index 10bddc871..482321232 100644 --- a/client/src/components/Map/RouteCalculator.ts +++ b/client/src/components/Map/RouteCalculator.ts @@ -407,7 +407,7 @@ export async function calculateRouteWithLegs( } const avoiding = profile === 'driving' && avoid.length > 0 && valhallaAvailable() - ? [...avoid].sort() + ? [...avoid].sort((a, b) => a.localeCompare(b)) : [] const coords = waypoints.map((p) => `${p.lng},${p.lat}`).join(';')