sorting words ?

Klaus major-k klaus at major-k.de
Mon Dec 7 11:57:38 EST 2015


Hi all,

> Am 07.12.2015 um 17:47 schrieb dunbarx at aol.com:
> 
> Hi. The dictionary explicitly says "lines" or "items". I don't think it will sort words at all. Even if you:
> sort it descending numeric
> It will not throw an error, but it also will not sort.

yep, so why not use ITEMS?
…
get "4 6 2 8 5“
set itemdel to SPACE
sort items of it ascending numeric
…

:-)

> Craig Newman
> 
> From: jbv <jbv at souslelogo.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Sent: Mon, Dec 7, 2015 11:31 am
> Subject: sorting words ?
> 
> Hi list
> Just a quick question; the following returns a compilation error :
>   get "4 6 2 8 5"
>   sort words of it ascending numeric
> 
> Is it because the sort function doesn't apply to words, or am I missing
> something ?
> 
> Thanks

Best

Klaus

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





More information about the use-livecode mailing list