Probably a pointless question about using sort to search..

Geoff Canyon gcanyon at gmail.com
Fri Dec 11 18:32:52 EST 2015


On Thu, Dec 10, 2015 at 12:47 PM, Peter Brigham <pmbrig at gmail.com> wrote:

> Someone on this list at some point posted an array sorting function that
> might be relevant here for some applications. See below.
>

​Why would anyone make a separate handler ​for this, and even more so, why
make it a function that takes a value by reference and then hands a value
back rather than a handler that changes the value in place?

But back to the first point, this function can be eliminated in three lines
of code:

combine someArray using cr
sort lines of someArray -- however you like
split someArray by cr



More information about the Use-livecode mailing list