An array sorted using the comparator.
The element to compare against array elements.
A function where given the return value of comparator(element, array[i])
if less than zero the returned index will be before i, otherwise after.
The starting index (inclusive). Default: 0
The ending index (exclusive). Default: array.length
Given an array using the given comparator function, finds the insertion index of an element.