in reply to Stupid, yet simple, sort question
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)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Stupid, yet simple, sort question
by davorg (Chancellor) on Oct 24, 2001 at 20:48 UTC | |
by tye (Sage) on Oct 24, 2001 at 23:19 UTC | |
by davorg (Chancellor) on Oct 25, 2001 at 12:15 UTC |