I only sort the array one time depending in which order the user wants the output (upwards/downwards).
Your code doesn't work for me, but I managed to take some math out which is good. Thanks for the hint.
Your code doesn't work for me, but I managed to take some math out which is good. Thanks for the hint.
Method compare:Int(v:Object)
If sortdfa_type(v).z = z Then
Return sortdfa_type(v).id-id
Else
Return sortdfa_type(v).z-z
EndIf
EndMethod