Documentation
    Preparing search index...

    Represents a single sorting rule applied to a Query. Specifies the target property name and the sorting direction.

    Implements

    • SortingType
    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • prop: string
      • order: "asc" | "desc" = 'asc'

      Returns Sorting

    Properties

    order: "asc" | "desc"

    The sorting order, either ascending (asc) or descending (desc).

    prop: string

    The exact property name in the collection to sort by.