SelectionSortT Method (T, ComparerT) |
Rearranges the array in ascending order, using a comparator.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static void Sort<T>(
T[] a,
Comparer<T> c
)
Parameters
- a
- Type: T
a the array - c
- Type: System.Collections.GenericComparerT
c the comparator specifying the order
Type Parameters
- T
See Also