Commit b4e277d8 authored by alain's avatar alain 🐙
Browse files

sort pois better

parent 82de24d2
......@@ -38,7 +38,9 @@ class MapSearch extends React.Component {
})
})
const pois = Object.keys(uniquePois).map(poi => {
var collator = new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'});
const pois = Object.keys(uniquePois).sort(collator.compare).map(poi => {
return {
name: poi,
coordinates: uniquePois[poi]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment