sorting words ?

Mark Waddingham mark at livecode.com
Wed Dec 9 08:17:19 EST 2015


On 2015-12-09 13:42, jbv at souslelogo.com wrote:
> Hi Mark,
> 
> I am probably missing something, but items can be separated by multiple
> itemdelimiters too, but nevertheless the sorting function works, as in 
> this
> example :
>    get "12,5,,4,10,,,11,24"
>    sort items of it ascending numeric
> 
> it returns ,,,4,5,10,11,12,24
> and no compilation error...

Right - but:

"1,2,,,,3,4,5"

Is a list of 8 items - 3 of them empty.

"the    quick   brown fox  jumped"

Is a list of 5 words - multiple item delimiters mean something, multiple 
spaces are just a single 'delimiter' in this context.

Warmest Regards,

Mark.


-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




More information about the use-livecode mailing list