@coveo/headless-react
    Preparing search index...

    Variable buildFieldSortCriterionConst

    buildFieldSortCriterion: (field: string, order: SortOrder) => SortByField

    Utility function that builds a valid SortByField criterion.

    Type declaration

      • (field: string, order: SortOrder): SortByField
      • Parameters

        • field: string

          The sortable field on which to sort.

        • order: SortOrder

          The order (ascending/descending) on which to sort.

        Returns SortByField

        A SortByField criterion.