Code: Select all
Table = {1, 2, 3, 4, 5, 6, 7, 8}
Sort(Table, Function(a, b)
Local Rando=Rnd(2)
If Rando = 0
Return(a > b)
Else
Return(a < b)
EndIf
EndFunction)
ForEach(Table, DebugPrint)
"Error in line 3 (Unnamed5): Invalid order function for sorting!"
But why?
Also, for a wishlist feature, A "Sort(Table, Random)" would be handy sometimes.