All the sorting of feature lists, taxonomies and so on is done using a straight comparison function. It would be better to allow configuration of the object with a language tag, and then instantiate a global Intl.Collator object with that language, and use it something like this:
[global]?
var collator = new Intl.Collator(lang);
then:
thisCatFeatures.sort(function(a, b) {
var aName = a.getProperties().name.toUpperCase();
var bName = b.getProperties().name.toUpperCase();
return collator.compare(aName,bName);
});
All the sorting of feature lists, taxonomies and so on is done using a straight comparison function. It would be better to allow configuration of the object with a language tag, and then instantiate a global Intl.Collator object with that language, and use it something like this:
[global]? var collator = new Intl.Collator(lang);
then: thisCatFeatures.sort(function(a, b) { var aName = a.getProperties().name.toUpperCase(); var bName = b.getProperties().name.toUpperCase(); return collator.compare(aName,bName); });