Given a value, a sorted array and a comparison function by which the array has been sorted, find the highest index at which the value could be inserted while maintaining sort order.
Given a value, a sorted array and a comparison function by which the array has been sorted, find the highest index at which the value could be inserted while maintaining sort order.