Le 29 nov. 03, à 16:30, Jarkko.Hietaniemi a écrit :
I want to correctly sort words in a variety of languages, currently
French, English, Spanish, Portuguese, German and Arabic. I am using
Perl 5.8.1 and unicode. I think I need Unicode::Collate to have
*correct* sorting. Is this correct?
In
Thank you both for your replies. What about sorting words in one
particular
language, is Perl's sort() good enough? I'm wondering, since language
isn't
one of sort()'s arguments.
First we need to define good enough... again, if you are sorting
simple English or Hawaiian, you are probably fine.
Ok, this is in line with what how I understood this paragraph in
perluniintro:
The short answer is that by default, Perl compares strings
(lt,
le, cmp, ge, gt) based only on the code points of
the char-
acters. In the above case, the answer is after, since