CollectionUtilities..::..Sort<(Of <(<'T>)>)> Method (IList<(Of <(<'T>)>)>, Comparison<(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, Comparison<T> comparison ) where T : IComparable<T>
Public Shared Sub Sort(Of T As IComparable(Of T)) ( _ list As IList(Of T), _ comparison As Comparison(Of T) _ )
Type Parameters
- T
- Type of item in the list
Parameters
- list
- Type: IList<(Of <(<'T>)>)>
The list to sort.
- comparison
- Type: Comparison<(Of <(<'T>)>)>
The comparison function to use when sorting.