in reply to How do I sort into an index?
Then you can do stuff like the following to see the results:@list_order = sort { $stuff_list[$a] cmp $stuff_list[$b] } 0 .. $#stuf +f_list;
orfor my $i ( 0 .. $#list_order ) { print "$stuff_list[$list_order[$i]]\n"; }
print join( "\n", @stuff_list[@list_order] ), "\n";
|
|---|