Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

sort route avoidance classes explicitly

Maurice76e182f44ed7
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(';')