Hex Core JS
    Preparing search index...

    Function sort

    • Creates a shallow copy of the given array and sorts that copy. Does not modify the original array.

      Type Parameters

      • T

      Parameters

      • array: T[]

        The array to copy and sort.

      • OptionalcomparisonFunction: ComparisonFunction<T>

        The comparision function to use for sorting.

      Returns T[]