For x = LBound(TabData, 1) To UBound(TabData, 1)
For y = x To UBound(TabData, 1)
If UCase(TabData(y, 1)) < UCase(TabData(x, 1)) Then
TmpZ1 = TabData(x, 1): TmpZ2 = TabData(x, 2): TmpZ3 = TabData(x, 3): TmpZ4 = TabData(x, 4): TmpZ5 = TabData(x, 5): TmpZ6 = TabData(x, 6)
TmpA1 = TabData(y, 1): TmpA2 = TabData(y, 2): TmpA3 = TabData(y, 3): TmpA4 = TabData(y, 4): TmpA5 = TabData(y, 5): TmpA6 = TabData(y, 6)
TabData(x, 1) = TmpA1: TabData(x, 2) = TmpA2: TabData(x, 3) = TmpA3: TabData(x, 4) = TmpA4: TabData(x, 5) = TmpA5: TabData(x, 6) = TmpA6
TabData(y, 1) = TmpZ1: TabData(y, 2) = TmpZ2: TabData(y, 3) = TmpZ3: TabData(y, 4) = TmpZ4: TabData(y, 5) = TmpZ5: TabData(y, 6) = TmpZ6
End If
Next y
Next x