Confirm sort container order...

Craig Newman craig at starfirelighting.com
Wed Mar 30 16:36:42 EDT 2022


Paul.

So if you had the following list of words:

Ant Bat Chicken

Ash Arc Baton

Abacus aardvark Ax

Axle Apron Allspice

Africa Amazing Club


and ran the same line of code, you would get:

Abacus aardvark Ax

Africa Amazing Club

Ant Bat Chicken

Ash Arc Baton

Axle Apron Allspice


Is this what you meant, and intended?

Craig


> On Mar 30, 2022, at 4:26 PM, Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> On 3/30/2022 4:13 PM, Craig Newman via use-livecode wrote:
>> A way I have always used was developed back in the HC days. Assuming you have your list in the variable “yourList"
>> 
>> sort lines of yourList by word 1 of each & word 2 of each & word 3 of each
>> 
>> 
> 
> I used single letters as an example, but my text is tab delimited and each cell is moderately long text.
> 
> I think using "word 1 of each & word 2 of each & word 3 of each" or "item 1 of each & item 2 of each & item 3 of each" concatenates all 3 "cells" together and sort by that string of characters. I think this could result in an invalid sort order of, for example, item 2 started with words found at the end of some items 1's.
> 
> 
> 
> _______________________________________________
> 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