Performs an in-place sort of the specified list.
Namespace:
Tortuga.Anchor
Assembly:
Tortuga.Anchor (in Tortuga.Anchor.dll)
public static void Sort<T>(
IList<T> list,
int startIndex,
int count,
IComparer<T> comparer
)
where T : IComparable<T>
Public Shared Sub Sort(Of T As IComparable(Of T)) ( _
list As IList(Of T), _
startIndex As Integer, _
count As Integer, _
comparer As IComparer(Of T) _
)
Type Parameters
- T
- Type of item in the list
Parameters
- list
- Type: IList<(Of <(<'T>)>)>
The list to sort.
- startIndex
- Type: Int32
The start index.
- count
- Type: Int32
The count.
- comparer
- Type: IComparer<(Of <(<'T>)>)>
The comparer to use when sorting.
Exception | Condition |
---|
[ArgumentNullException] | list or comparer |