sub numeric {$a <=> $b}
The <=> operator will take care of everything! Of course you will need to change the above sub to fit exactly your needs, but that should be a piece of cake. :-) If not dare to ask again :-)
Bye,
C-Keen
In reply to Re: Sorting an array of strings by number
by C-Keen
in thread Sorting an array of strings by number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |