Re: Is Sort:Naturally a Little Off?

[email protected] (Smylers) Sat, 25 Sep 2021 09:29:55 +0100
Newsgroups perl.module-authors
Message-ID <[email protected]>
Shawn H Corey writes:

> And my environment is:
>=20
> $ env|grep LC_|sort
> LC_ADDRESS=3Den_CA.UTF-8
> LC_IDENTIFICATION=3Den_CA.UTF-8
> LC_MEASUREMENT=3Den_CA.UTF-8
> LC_MONETARY=3Den_CA.UTF-8
> LC_NAME=3Den_CA.UTF-8
> LC_NUMERIC=3Den_CA.UTF-8
> LC_PAPER=3Den_CA.UTF-8
> LC_TELEPHONE=3Den_CA.UTF-8
> LC_TIME=3Den_CA.UTF-8

I think that if you don't have LC_COLLATE or LC_ALL set, then the value
of LANG is used, so that could also be relevant here.

I can reproduce your results when I use en_CA.utf8.

So it appears that en_CA.utf8 and en_GB.utf8 sort =E2=80=98a=E2=80=99 and=
 =E2=80=98A=E2=80=99 the
opposite way round to each other. I wonder why. (Not relevant to any bug
in Sort::Naturally, but it's now intriguing me.)

Smylers