Confirm sort container order...
Paul Dupuis
paul at researchware.com
Wed Mar 30 15:39:06 EDT 2022
Hello,
I need a little help today wrapping my mind around something simple in
LiveCode.
sort [{lines | items} of] container [direction] [sortType] [by sortKey ]
I have 3 columns of tab and cr delimited data. For example:
A B C
A A B
A B A
A A A
A A C
If I want to sort by col 1, then 2, then 3, I would reverse the sort
statements. i.e.
sort lines of tData ascending text by item 3 of each
sort lines of tData ascending text by item 2 of each
sort lines of tData ascending text by item 1 of each
to end up with:
A A A
A A B
A A C
A B A
A B C
Is this "correct"? This is what the dictionary entry is referring to as
a "stable sort"?
I just get this, but my mind is confusing me today.
More information about the use-livecode
mailing list