Sorts an array using the merge sort algorithm
The array to sort
The comparison function used to determine the order of elements
Sorts an array using the merge sort algorithm