fixed mergeSort result order