Commit adb684ea authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

Fix ordering commune array (accentuation problem)

parent e26f3b9a
{
"name": "webapp",
"version": "2.6.13",
"version": "2.7.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
......@@ -119,7 +119,7 @@ export class ResourceDownloadItemComponent implements OnInit {
const properties = Object.keys(this._datasetDetailService.datasetData[0].properties);
this.inseeLabel = properties.find((prop) => { return prop.includes('insee'); });
}
this.communeInseeList.sort((a, b) => (a.commune > b.commune) ? 1 : -1);
this.communeInseeList.sort((a, b) => (a.commune.localeCompare(b.commune)));
this.setProjection(this.selectedProjection);
}
......
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