Sort
Utility class containing 18 high-performance sorting algorithm implementations for int[] and double[] arrays.
Methods
In-place bubble sort swapping elements in adjacent order.
Bidirectional bubble sort variant.
Parallel-friendly comparison sort alternating odd/even index passes.
Divide-and-conquer quicksort using pivot partitioning.
Stable divide-and-conquer merge sort.
PriorityQueue-backed binary heap sort.
Hybrid sort switching from QuickSort to HeapSort based on recursion depth.
Hybrid stable sort derived from MergeSort and InsertionSort.
Distribution sort for uniformly distributed floating-point numbers in [0.0, 1.0).
Binary Search Tree insertion and in-order traversal sort.
Piles-based sorting utilizing PriorityQueue dequeues.
Gravity/bead sort for positive integers.