in reply to Numerically sorting array items containing delimited strings
If you just convert your data to:
then a reversed sort will do just what you want:@records = ("0.66+5638+copper globe", "1.00+1396+the blocks", "0.33+4055+hunt draw");
is one way to do that. - tye (but my friends call me "Tye")s/^\./0./ for @records; @records= sort {$b cmp $a} @records;
|
|---|