Public Sub Sort()
'¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Dim i As Long, j As Long
Dim bC As Byte, bR As Byte, bW As Byte, sN As String, sR As String
Dim yB As Boolean, yW As Boolean
For i = 1 To m_colFields.Count - 1
For j = i + 1 To m_colFields.Count
If UCase(m_colFields(i).strName) > UCase(m_colFields(j).strName) Then
bC = m_colFields(j).bytCol
bR = m_colFields(j).bytRow
bW = m_colFields(j).bytWidth
sN = m_colFields(j).strName
sR = m_colFields(j).strRange
yB = m_colFields(j).booHeadBefore
yW = m_colFields(j).booHeadWith
m_colFields(j).bytCol = m_colFields(i).bytCol
m_colFields(j).bytRow = m_colFields(i).bytRow
m_colFields(j).bytWidth = m_colFields(i).bytWidth
m_colFields(j).strName = m_colFields(i).strName
m_colFields(j).strRange = m_colFields(i).strRange
m_colFields(j).booHeadBefore = m_colFields(i).booHeadBefore
m_colFields(j).booHeadWith = m_colFields(i).booHeadWith
m_colFields(i).bytCol = bC
m_colFields(i).bytRow = bR
m_colFields(i).bytWidth = bW
m_colFields(i).strName = sN
m_colFields(i).strRange = sR
m_colFields(i).booHeadBefore = yB
m_colFields(i).booHeadWith = yW
End If
Next j
Next i
End Sub