Function mergeSortNum

  • Sorts an array of numbers using the merge sort algorithm.

    Parameters

    • array: number[]

      The array to be sorted.

    Returns number[]

    The sorted array.