in reply to How do you sort an array?

I ran the first listing's code and it failed to sort the array. Here's the fix:
15 16 # Return the difference (0 = same) 17 return $a_v - $b_v; 18 } 19
was originally :
15 16 # Return the difference (0 = same) 17 return $a - $b; 18 } 19

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re: Re: How do you sort an array?
by Anonymous Monk on Mar 24, 2001 at 01:43 UTC
    Thank you so much for taking the time. :)