Sub Trier()
Dim T, T0, L, C, C2
T0 = Timer
T = [A1].CurrentRegion
For L = 2 To UBound(T, 1)
For C = 1 To UBound(T, 2)
For C2 = C To UBound(T, 2)
If T(L, C) > T(L, C2) Then
Buffer = T(L, C): T(L, C) = T(L, C2): T(L, C2) = Buffer
End If
Next C2
Next C
Next L
[G1].Resize(UBound(T, 1), UBound(T, 2)) = T
[M1] = 1000 * (Timer - T0)
End Sub