Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Fix voltage sorting

Russ Garrett10e95431fb25
diff --git a/web/src/infopopup.ts b/web/src/infopopup.ts
index 7f9ebfd..e505beb 100644
--- a/web/src/infopopup.ts
+++ b/web/src/infopopup.ts
@@ -149,7 +149,7 @@ class InfoPopup {
)
let text = [...voltages]
- .sort()
+ .sort((a, b) => a - b)
.reverse()
.map((val) => val.toString())
.join('/')