Version

Sort(SortOrder) Method

Sorts this collection based on the specified sortOrder value, using each group's text as the sort criteria.
Syntax
'Declaration
 
Public Overloads Sub Sort( _
   ByVal sortOrder As SortOrder _
) 
public void Sort( 
   SortOrder sortOrder
)

Parameters

sortOrder
Specifies whether the contents of this collection should be sorted in ascending or descending order.
Remarks

By default, the ordinal position of each group is determined by the order in which it was added to the collection; use the Sort method to change the ordinal position based on the value of the group's Text property.

When the Text property is not explicitly set, the value of the group's Key property is used.

Specifying a value of SortOrder.None has no effect.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also