use Sort::Fields; # sort on the second element (i.e. element #1) @sorted = fieldsort '\|', [1], @lines; [download]
In reply to Re: How to sort an array by ishnid in thread How to sort an array by cosmicsoup