A family of Microsoft word processing software products for creating web, email, and print documents.
Does this work better?
Sub MySort(arr)
Dim i As Long
Dim j As Long
Dim tmp1 As Long
Dim tmp2 As String
For i = LBound(arr) To UBound(arr) - 1
For j = i + 1 To UBound(arr)
If Val(arr(i, 1)) > Val(arr(j, 1)) Then
tmp1 = arr(i, 1)
arr(i, 1) = arr(j, 1)
arr(j, 1) = tmp1
tmp2 = arr(i, 2)
arr(i, 2) = arr(j, 2)
arr(j, 2) = tmp2
End If
Next j
Next i
End Sub