We assume each element of the list/array as a separated list. Each single element is sorted by default so we merge down pair of elements using the merging two sorted arrays method.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed