go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I have an array containing lines of colon separated values.
e.g.
23.40:hello:this:is:a:line 123.38:this:is:another:line 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? Many Thanks. In reply to Sorting an array of strings by number by Anonymous Monk
|
|