CollectionUtilities..::..Sort<(Of <(<'T>)>)> Method (IList<(Of <(<'T>)>)>, IComparer<(Of <(<'T>)>)>)
Performs an in-place sort of the specified list.
Namespace:
Tortuga.AnchorAssembly: Tortuga.Anchor (in Tortuga.Anchor.dll)
Syntax
public static void Sort<T>( IList<T> list, IComparer<T> comparer ) where T : IComparable<T>
Public Shared Sub Sort(Of T As IComparable(Of T)) ( _ list As IList(Of T), _ comparer As IComparer(Of T) _ )
Type Parameters
- T
- Type of item in the list
Parameters
- list
- Type: IList<(Of <(<'T>)>)>
The list to sort.
- comparer
- Type: IComparer<(Of <(<'T>)>)>
The comparer to use when sorting.