in reply to Re: sorting multidimensional arrays
in thread sorting multidimensional arrays
So I'll just note that substituting sort { $b <=> $a} for the reverse in your example works, too.
Oh, and if he didn't want the original data affected:
my @sorted = map {[sort { $b <=> $a } @$_]} @unsorted;
|
|---|