print join "\n", map { join ',', @{$_->[0]} } sort { $a->[1] cmp $b->[1] } map { my $x; for(@$_){$x.=sprintf("%012d",$_)}; [$_,$x] } @un_sorted;
In reply to Re: sort by a multiple columns
by Roy Johnson
in thread sort by a multiple columns
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |