D dorothyc New Member Jan 5, 2001 #1 I mean... how do I make the items with a higher value in the array go to the bottom of the list instead of the top? Thanks
I mean... how do I make the items with a higher value in the array go to the bottom of the list instead of the top? Thanks
G Grant New Member Jan 5, 2001 #4 Originally posted by dorothyc perl Click to expand... Just use the perl reverse function. @array = reverse @array;
Originally posted by dorothyc perl Click to expand... Just use the perl reverse function. @array = reverse @array;
J Jerry New Member Jan 6, 2001 #6 the proper way to do this is.. @array = sort { $b <=> $a } @array; that will sort by numbers in descending order.. (higher to lower)
the proper way to do this is.. @array = sort { $b <=> $a } @array; that will sort by numbers in descending order.. (higher to lower)