This is the mail archive of the
libc-locales@sources.redhat.com
mailing list for the GNU libc locales project.
Re: Incorrect sorting order?
On Sat, Jul 17, 2004 at 09:55:37AM +0200, Petter Reinholdtsen wrote:
>
> [Keld Jørn Simonsen]
> > The problem is that the example actually has two fields, the surname and
> > the given name, and requires a multifield sort. This is acknowledged by
> > string sorting litterature. But the example only sorts on one field.
> >
> > String sorting theory prescribes that special characters such as
> > comma are ignored at the first 3 levels.
>
> Do you have any references to such sorting literature and sorting
> theories?
Rolf Garvare is one of the main persons. His article is only availble on
paper. Alain LaBonté is another master of the theories, but I do not
have readily available references thete. I can ask him.
> I suspect glibc sorting would be more useful and less surprising if
> comma wasn't ignored on the first level.
You could solve the problem at hand by having space be significant on
the first level.
Best regards
Keld