Class IntArraySorter


  • public final class IntArraySorter
    extends Object
    Sorts an 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.

    Author:
    Johannes Schindelin
    • Method Detail

      • sort

        public static void sort​(int[] array,
                                IntComparator comparator)