Click or drag to resize
Insertion Methods

The Insertion type exposes the following members.

Methods
  NameDescription
Public methodStatic memberIndexSort
Returns a permutation that gives the elements in the array in ascending order, while not changing the original array a[]
Public methodStatic memberMainTest
Reads in a sequence of strings from standard input; insertion sorts them; and prints them to standard output in ascending order.
Public methodStatic memberSort(IComparable)
Rearranges the array in ascending order, using the natural order.
Public methodStatic memberSort(Object, Comparer)
Rearranges the array in ascending order, using a comparator.
Public methodStatic memberSort(IComparable, Int32, Int32)
Rearranges the subarray a[lo..hi] in ascending order, using the natural order.
Public methodStatic memberSortT(T, Int32, Int32, ComparerT)
Rearranges the subarray a[lo..hi] in ascending order, using a generic comparator.
Top
See Also