Sort organizations.

parent 2e4f6b97
...@@ -563,12 +563,13 @@ $(document).ready(function () { ...@@ -563,12 +563,13 @@ $(document).ready(function () {
// load list of organizations from map features // load list of organizations from map features
organizations: function(){ organizations: function(){
if (vueMap.features != null){ if (vueMap.features != null){
return vueMap.features.map(function(feature){ let organizations = vueMap.features.map(function(feature){
return { return {
"id": feature.properties.OrganizationID, "id": feature.properties.OrganizationID,
"name": feature.properties.OrganizationName, "name": feature.properties.OrganizationName,
} }
}); });
return organizations.sort();
} }
} }
}, },
......
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