Dim A() As Int
A = Array As Int(5, 7, 1, 2, 9, 2)
Dim L As List
L.Initialize
L.AddAll(A)
L.Sort(False)
For i = 0 To 3
Log(L.Get(i))
Next
9
7
5
2
If you have only carX columns you could use
You could also use a For / Next loop instead of a Do While / Loop loop no need for v=v+1.B4X:label(v) = cursorraces.GetString2(v)