I have a ListView (GridView) with multiple columns and so far I can sort it by column alphabetically, but when I'm sorting A-Z, empty strings show up at the top. I want to move these to the end. I think I've managed to make an IComparer that will put empty strings at the end, but I don't know how to make my ListView use it. Here's the comparer I made, by the way:
Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer Implements System.Collections.IComparer.Compare
If TypeOf x Is String And TypeOf y Is String Then
If x = "" And y = "" Then
Return 0
ElseIf x = "" And y <> "" Then
Return 1
ElseIf x <> "" And y = "" Then
Return -1
End If
End If
Return x.CompareTo(y)
End Function