Which one is the most efficient one? I need one that can take at least 3,000 different ranks...thats the stress limit of my script and it must be able to handle the stress limit..#1: sort{ $a->{users} ,<=> $b->{users} } @locations #2 for my $loc ( sort { $a->{users} <=> $b->{users} } @locations ) #3 foreach $loc (reverse sort { int($a) <=> int($b) } @locations)
In reply to Re: Stupid, yet simple, sort question
by Kage
in thread Stupid, yet simple, sort question
by Kage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |