Brute force method (Bubble sort)
Dim arrVehicles(1 to 10398, 1 to 6)
For i=1 To 10398
For j=i+1 To 10398
If arrVehicles(i,1)>arrVehicles(j,1) Then
For k=1 To 6
tmp=arrVehicles(i,k)
arrVehicles(i,k)=arrVehicles(j,k)
arrVehicles(j,k)=tmp
Next k
End If
Next j
Next i
I left as an exercise the use of LBound and UBound
Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884