Sorting an array of strings by numberby Anonymous Monk
|on Oct 01, 2001 at 15:48 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I have an array containing lines of colon separated values. e.g.
i am sorting the array before i work on it, so that when i use my display method, they are automatically in ascending price order (first value is price). However, it works fine for prices less than 100, but 100+ takes precidence over the other prices, due obviously to the 1.
so instead of 39,45,120,139 I get 120,139,39,45
Is there any way I can get this to work right?