Commit 7e96e8ba authored by Eric Duminil's avatar Eric Duminil
Browse files

Sort projects

parent bd29d301
......@@ -98,8 +98,10 @@ var regionChooser = (function(){
feature["source"] = "CityGML";
});
features_by_project = groupBy(kml_source.getFeatures(), "project");
var features = Array.from(kml_source.getFeatures());
// Sort projects
features.sort((a, b) => a.project.localeCompare(b.project));
features_by_project = groupBy(features, "project");
// Sort CityGMLs inside each project
Object.values(features_by_project).forEach(features => features.sort((a, b) => a.name.localeCompare(b.name)));
}
......
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