Private Sub LvwDetails_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
With LvwDetails
If .SortKey <> ColumnHeader.index - 1 Then
.SortKey = ColumnHeader.index - 1
.SortOrder = lvwAscending
Else
If .SortOrder = lvwAscending Then
.SortOrder = lvwDescending
Else
.SortOrder = lvwAscending
End If
End If
.Sorted = -1
End With
End Sub




