in reply to Sorting according to locale collation
According to Lithuanian rules this should have printed:
ia
ya
ib
yb
ic
yc
Hmm, I don't know why perl does not sort these correctly. But just out of curiosity: You said that "i" and "y" are treated the same. Would it still be right if you swap "ia" and "ya" in that list?
The sort function, when not given a code block, uses the "cmp" operator, which does use the locale according to perlop. Does the Unix utility sort(1) behave correctly?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting according to locale collation
by amir_e_a (Hermit) on Apr 22, 2007 at 13:40 UTC | |
by betterworld (Curate) on Apr 22, 2007 at 14:42 UTC | |
by Krambambuli (Curate) on Apr 22, 2007 at 15:55 UTC | |
|
Re^2: Sorting according to locale collation
by Anonymous Monk on Dec 06, 2011 at 01:30 UTC |