@s-libs/js-core
    Preparing search index...

    Function sort

    • Creates an array of elements, sorted in ascending order as determined by the < and > operators. This function performs a stable sort, that is, it preserves the original sort order of equal elements.

      Type Parameters

      • T

      Parameters

      • collection: undefined | null | Record<string, T> | readonly T[]

      Returns T[]