Sort numbers, problem.

Klaus Major klaus at major-k.de
Wed Sep 7 05:26:48 CDT 2005


Bonjour Damien,

> Hi all,
>
> I have got a problem with the sort command in Revolution.
> I have got a list, who contains number, and I need to sort them,  
> but there are a problem with the sort command.
>
> Exemple script:
>
> global totox
> put "1,215,3,48,5,16,24" into totox
> sort items of totox
> put totox
>
> Normally, I will have got this result :
> "1,3,5,16,24,48,215"
>
> but NO, I have got this :
> "1,16,215,24,3,48,5"
>
> There are 2 ways for this problem, I have forgot to write somthing  
> in my script or there is a beautiful bug.

Sorry to disappoint you, but this is no bug ;-)

...
sort items of totox NUMERIC
...

Will do the trick :-)

> Thanks.
>
> Damien Girard
> Email: dam-pro.girard at laposte.net

Best

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list