Help for this page

Select Code to Download


  1. or download this
    @new = sort { lc $a cmp lc $b } @old;
    
  2. or download this
    # incidentally, why doesn't this trigger a bareword
    # warning under strict?
    @new = sort alphanumeric @old;
    
    sub alphanumeric { lc $a cmp lc $b }