Documentation
    Preparing search index...

    Function sort

    • Sorts the specified array in-place. This function intends to implement stable sort.

      Type Parameters

      • T

      Parameters

      • array: T[]

        the array to get sorted.

      • Optionalcomparer: ComparerFunction<T>

        an optional callback used to compare the elements. undefined elements will be passed in to it nevertheless.

      Returns void

      Implement this function without Array.sort -- it is too tricky and might be slow.