how can I sort the array in ascending order?
Code: Select all
....
repeat until revQueryIsAtEnd(theCursor)
add 1 to i
put distanza(myvalue) into totale[i]
revMoveToNextRecord theCursor
end repeat
....
the result:
Code: Select all
totale[1] = "21344.4"
totale[2] = "344.7"
totale[3] = "11344.5"
totale[4] = "91344.2"
Code: Select all
totale[1] = "344.7"
totale[2] = "11344.5"
totale[3] = "21344.4"
totale[4] = "91344.2"