in reply to Sorting Alphanumeric Arrays
Sort numerically, but switch to alphabetical for ties:
@new = sort { no warnings; $a <=> $b || $a cmp $b } @old;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Sorting Alphanumeric Arrays
by slloyd (Hermit) on Jun 13, 2005 at 20:09 UTC |