Click or drag to resize
InsertionSort Method (Object, Comparer)
Rearranges the array in ascending order, using a comparator.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void Sort(
	Object[] a,
	Comparer comparator
)

Parameters

a
Type: SystemObject
a the array
comparator
Type: System.CollectionsComparer
comparator the comparator specifying the order
See Also