http://qs321.pair.com?node_id=396336


in reply to Re^2: Sorting Question
in thread Sorting Question

although you may want to actually sort alphabetically (ie case-insensitive) instead of ASCIIbetically:
@list = sort { lc $a cmp lc $b } @list;

Replies are listed 'Best First'.
Re^5: Sorting Question
by allolex (Curate) on Oct 05, 2004 at 16:30 UTC

    Which is why it's often a good idea to use locale when sorting. Then you don't have to contort yourself so much to get good sorting results.

    --
    Damon Allen Davison
    http://www.allolex.net