in reply to Re^2: Reverse sort arrayin thread Reverse sort array
my $sorter = $lkup{$method}{$direction}; for (sort $sorter @array) { ... } [download]