sort route avoidance classes explicitly

This commit is contained in:
Maurice
2026-09-12 17:26:38 +02:00
parent 51626e8184
commit 76e182f44e
+1 -1
View File
@@ -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(';')