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?
In reply to Re: Sorting according to locale collation
by betterworld
in thread Sorting according to locale collation
by amir_e_a
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |