RandomSeed test
Alex Tweedly
alex at tweedly.net
Wed May 22 19:09:39 EDT 2013
On 22/05/2013 23:50, Dar Scott wrote:
> I think the problem comes up when two equal items are compared. I suspect that sort will tend to leave things unchanged.
It's not just "tend to" leave them unchanged - it will *always* leave
them unchanged if the sort keys are equal. It says in the docs ....
>
> The sort command is a stable sort. This means that if the sortKey for
> two cards is the same, sorting does not change their order, so you can
> do two successive sorts to create subcategories within the major sort
> categories. For example, to sort the cards of a stack by ZIP code and
> sort within each ZIP code by last names, use these two statements:
-- Alex.
More information about the use-livecode
mailing list