A new array containing all values in sorted order.
Remarks
Both input arrays must already be sorted with the same comparator. The
returned array is a new array; neither input array is mutated. When the
comparator treats two values as equal, the value from array2 is emitted
first.
Merges two sorted arrays into a new sorted array.