in reply to Re: Sorting Question
in thread Sorting Question

Which is just the same as @list = sort @list

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^3: Sorting Question
by geekgrrl (Pilgrim) on Oct 04, 2004 at 18:53 UTC
    although you may want to actually sort alphabetically (ie case-insensitive) instead of ASCIIbetically:
    @list = sort { lc $a cmp lc $b } @list;

      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