in reply to Re: How do I record in what order a sort was preformedin thread How do I record in what order a sort was preformed
The last step can be simplified: my @sorted_array= @array[@sorted_indices];