do the trick, where @arrays is an array of references to the arrays you want to sort?@arrays = sort { $a->[$y] cmp $b->[$y] } @arrays;
In reply to Re: Sorting arrays and maintaining an index
by Masem
in thread Sorting arrays and maintaining an index
by Prince99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |