Doing a dumb sort by character or byte values is obviously the wrong call for any diacritics, but the right call may also depend on the language.
Doing a dumb sort by character or byte values is obviously the wrong call for any diacritics, but the right call may also depend on the language.
* Albertslund
* Odense
* Aarhus
This feels like material for another Tom Scott video.Pike matchbox.
It would have been reasonable to conclude the article a third of the way through, and say "sorting is locale-dependent, if what you value is consistent behaviour between different OSs (instead of sorting based on the user's preferences) you need to implement the sorting yourself."
The article does mention it but in passing.
My worry is that it would perform badly on really large directories... That said, for where it's a pain, it would be helpful to say the least.
And then a lot of languages are used in different countries with different rules.