Constructors
constructor
- new MergeSort<T>(comparator: (a: T, b: T) => number): MergeSort<T>
-
Type parameters
Parameters
-
comparator: (a: T, b: T) => number
-
-
Parameters
Returns number
Properties
Private array
array: T[] = []
Private tempMergeArray
tempMergeArray: T[] = []
Methods
Private doMergeSort
- doMergeSort(lowerIndex: number, higherIndex: number): void
-
Parameters
-
lowerIndex: number
-
higherIndex: number
Returns void
Private mergeParts
- mergeParts(lowerIndex: number, middle: number, higherIndex: number): void
-
Parameters
-
lowerIndex: number
-
middle: number
-
higherIndex: number
Returns void
https://github.com/G43riko/JavaUtils/blob/master/GLib/src/glib/sorts/GMergeSort.java