Version

Sort Method (PrimitiveCollection)

Sorts this PrimitiveCollection using the specified IComparer.
Syntax
'Declaration
 
Public Sub Sort( _
   ByVal comparer As IComparer, _
   ByVal ascending As Boolean _
) 
public void Sort( 
   IComparer comparer,
   bool ascending
)

Parameters

comparer
The IComparer to use in the sort.
ascending
Whether or not to sort in ascending order.
Remarks

To compare Primitives by their Value property, use the PrimitiveComparer class.

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