Sort what by what?
Your code is too way off for me to decipher your intentions.
If you want to sort the filenames by the substring after the last _, then I'd do something like
(untested).my @sorted = map $_->[ 0 ], sort { $a->[ 1 ] cmp $b->[ 1 ] } map [ $_, ( split '_' )[ -1 ] ], @unsorted;
the lowliest monk
In reply to Re^2: Sort - can't
by tlm
in thread Sort - can't
by malaga
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |