Element type stored in the array.
Sorted array to mutate.
Value to insert.
Sort comparator using the same ordering as array.
The same array instance after insertion.
This function mutates and returns the input array. Equal items remain before
the inserted value because insertion occurs at the first item greater than
value. The comparator must use the same ascending ordering that was used
to sort array.
Inserts one value into a sorted array while preserving sort order.