mergeSort

HC Data Structure Primitives Rearrangers mergeSort
shuffle combSort

mergeSort list1


outputs a new list containing the elements of list1 in alphabetical order.

Example:

show mergeSort [5 3 2 4 1 12]		;[1 12 2 3 4 5]
show mergeSort [d b c a aa]		;[a aa b c d]

References:

shuffle combSort