Imports System.Collections.Generic
Function CustomComparator(ByVal x As String, ByVal y As String) As Integer
While iter_x < x.Length() And iter_y < y.Length()
If x.Chars (iter_x) = "\" And y.Chars (iter_y) = " " Then
ElseIf x.Chars (iter_x) = " " And y.Chars (iter_y) = "\" Then
ElseIf x.Chars (iter_x) < y.Chars (iter_y) Then
ElseIf x.Chars (iter_x) > y.Chars (iter_y) Then
If iter_x = x.Length () Then
Dim a As New List(Of String)
a.Sort(AddressOf CustomComparator)
For i as Integer = 0 To a.Count-1