sorting words ?

jbv at souslelogo.com jbv at souslelogo.com
Wed Dec 9 07:42:56 EST 2015


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...

Best regards
jbv

> On 2015-12-09 12:41, jbv at souslelogo.com wrote:

> Words can be separated by multiple spaces, so the question here is that
> what would sorting the words of:
>
> the      quick brown  fox    jumped over     the lazy         dog
>
> Give you?
>
> If you want to sort by (single) space delimited things (i.e. not
> 'words', which are both quoted and separated by multiple spaces) you can
> just change the item/line delimiter and use items/lines.
>
> Basically the answer to your question is simply that:
>
> a) It is not entirely obvious what 'sort the words of' should do.
>
> b) The case of sorting a list of single space separated things is
> already available by fiddling with delimiters and using item/line
> chunks.
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>





More information about the use-livecode mailing list