Click or drag to resize
InsertionSortT Method (T, Int32, Int32, ComparerT)
Rearranges the subarray a[lo..hi] in ascending order, using a generic comparator.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void Sort<T>(
	T[] a,
	int lo,
	int hi,
	Comparer<T> comparator
)

Parameters

a
Type: T
a the array
lo
Type: SystemInt32
lo left endpoint
hi
Type: SystemInt32
hi right endpoint
comparator
Type: System.Collections.GenericComparerT
comparator the comparator specifying the order

Type Parameters

T
See Also