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.
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode