public static void sort(short[] array, ShortComparator comparator) {
        sort(array, 0, array.length, comparator);
    }
@Test
    void test_sorting_custom_comparator() {
        short[] array = {4, 2, 5};
        PrimitiveArraySorter.sort(array, (a, b) -> Short.compare(b, a)); // Sort using inverse ordering.
        short[] expected = {5, 4, 2};
        assertArrayEquals(expected, array);
    }