in reply to Using system sort order

I can confirm that the sort order on my Mac is what you have posted, but I'm surprised and I feel it's wrong. There's no way I can imagine that á should come before a or í before i with the LC_COLLATE value set to en_US.UTF-8. I think Perl is getting it right here.


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Using system sort order
by ysth (Canon) on Aug 11, 2025 at 17:17 UTC
    It isn't doing anything fancy like sorting all a variants together but sorting the within a by diacritic, it is treating the a's as equal and sorting these strings by the different second words.