Page 1 of 1
sort$
Posted: Wed Nov 09, 2011 3:36 pm
by maurizio
Hi, i dont understand how is use the `SORT$ function`, for slide the array in alphabetical order i must use with the FOR loop or only the SORT$ work the same?
thank.
sort$
Posted: Fri Nov 11, 2011 5:32 pm
by maurizio
I resolved.
Dim x(2) as string
x(0)="C"
x(1)="B"
x(2)="A"
sort$ x(0 to 2),ststring
dim i as integer
for i=0 to 2
print x(i)
next i
sleep 3000
sort$
Posted: Fri Nov 11, 2011 9:10 pm
by Marco
just wanted to give an answer but you find it out already.
sort$ is a binary sort method. It works only on single arrays.
best regards marco
sort$
Posted: Fri Nov 11, 2011 9:38 pm
by Marco
sort$ seems to be buggy, i will investigate it.
regards marco