is an array that I sort like this
intcollection.features.sort((a, b) => {
return (a.properties.Name.toUpperCase() < b.properties.Name.toUpperCase()) ? -1 : ((a.properties.Name.toUpperCase() > b.properties.Name.toUpperCase()) ? 1 : 0);
});
always gonna be in the sorted order even if I pass it as argument the a function?