[Tutor] Out of range

Magnus Lycka magnus@thinkware.se
Tue Feb 4 18:06:32 2003


At 18:39 2003-02-04 -03-30, Adam Vardy wrote:
>Sorting is now going like this.  We have for instance, 1Meg, 1.2Meg
>etc., and 10 Meg, 11 Meg, and then 2Meg, 3Meg ...

You are sorting strings, i.e. text. For numerical sorting
you must sort values of a numeric type. Se my conversion
functions posted previously.

'5' is more than '10', but 10 is more than 5. Right?


-- 
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se