starry-math
    Preparing search index...

    Function mergeSort

    • Sorts an array using the merge sort algorithm

      Type Parameters

      • T

      Parameters

      • arr: T[]

        The array to sort

      • cb: (a: T, b: T) => number

        The comparison function used to determine the order of elements

      Returns void