randomly order a list
Dar Scott
dsc at swcp.com
Wed May 22 18:53:48 EDT 2013
On May 22, 2013, at 4:35 PM, Jacques Hausser wrote:
> I think that you cannot sort by random(999999) because the argument of the sort (the sortkey as it is called in the dictionary) must by something like "item 2 of each" and not a number out from a random generator.
I'll have to run tests to refresh my memory but I think the sort expression MAY use 'each' but is not required to. It can even use it more than once.
I have passed each to a function I wrote in the past. I think.
Dar
More information about the use-livecode
mailing list