Probably a pointless question about using sort to search..

Geoff Canyon gcanyon at gmail.com
Fri Dec 11 19:34:13 EST 2015


On Fri, Dec 11, 2015 at 6:51 PM, Alex Tweedly <alex at tweedly.org> wrote:

>
> I haven't read everything in this thread, so I don't know if Peter's
> function handled this or not ...
>
> On 11/12/2015 23:32, Geoff Canyon wrote:
>
>> On Thu, Dec 10, 2015 at 12:47 PM, Peter Brigham <pmbrig at gmail.com> wrote:
>>
>>>
>>> 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
>>
>> Ummm ...
>    put "abc" & CR & "def" into somearray[1]
>    put "ghj" into somearray[2]
> and then try the above 3-line code snippet.
>
> -- Alex.


>From the function:

repeat for each line k in keyList
      put pArray[k] & cr after valueList

It doesn't.
​



More information about the use-livecode mailing list