map.apps Bundle APIs 4.20.0
    Preparing search index...

    Function sort

    • Sorts the given ResultItems by the rules specified in "options.sort".

      Type Parameters

      • T extends Readonly<Record<string, any>>

      Parameters

      • items: ResultItems<T>

        Result of a query.

      • Optionaloptions: SortOptions

        Options which define how the items are sorted.

      Returns ResultItems<T>

      A sorted copy of the given query result. If "options.sort" is not specified, the given items are returned unsorted.