sort

fun ByteBuffer.sort()
fun ShortBuffer.sort()
fun IntBuffer.sort()
fun LongBuffer.sort()
fun DoubleBuffer.sort()
fun FloatBuffer.sort()
fun CharBuffer.sort()

Sorts the array in-place.

Samples

kool.buffers.Arrays.Sorting.sortArray
fun ByteBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
fun ShortBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
fun IntBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
fun LongBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
fun FloatBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
fun DoubleBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)
fun CharBuffer.sort(fromIndex: Int = 0, toIndex: Int = lim)

Sorts a range in the array in-place.

Samples

kool.buffers.Arrays.Sorting.sortRangeOfArray

Parameters

fromIndex

the start of the range (inclusive) to sort, 0 by default.

toIndex

the end of the range (exclusive) to sort, size of this array by default.

Throws

if fromIndex is less than zero or toIndex is greater than the size of this array.

if fromIndex is greater than toIndex.