• 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.

    • Optional options: 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.

Generated using TypeDoc