Heya ricardo,
It looks like it treats the whole thing as an a one-dimensional array and sorts. 8O
All the values end up in the last few elements of the array, in (6,0) to (10,1) so I assume it stores values internally as a contiguous chunk of values:
(0,0) (0,1) (1,0) (1,1) .. (10,0) (10,1)
and just sorts those values.
Code: Select all
Dim MyArray(10,1)
For i = 0 To 10
MyArray(i,1) = 10-i
For j=0 To 1
Debug Str(i)+":"+Str(j)+" = "+Str(MyArray(i,j))
Next
Next
SortArray(MyArray(),0)
Debug "==="
For ii = 0 To 10
For jj=0 To 1
Debug Str(ii)+":"+Str(jj)+" = "+Str(MyArray(ii,jj))
Next
Next
Weird.