public class IntArraySorter extends Object
int[]
according to a custom comparator.
This is an implementation of introsort, i.e. it is stable because it tries the quicksort algorithm first and falls back to the heap sort when it detects an unfavorable execution path.
Constructor and Description |
---|
IntArraySorter() |
public static void sort(int[] array, IntComparator comparator)
Copyright © 2015–2021 Fiji. All rights reserved.