Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.01 KB

search-core.sortby.md

File metadata and controls

26 lines (16 loc) · 1.01 KB

Home > @yext/search-core > SortBy

SortBy interface

Represents a criterion that can be used to sort results.

Signature:

export interface SortBy 

Remarks

Overrides the sort options that are configured on the experience configuration.

Properties

Property Type Description
direction? Direction (Optional) The direction of the sort. Required if the SortBy type is SortType.Field.
field? string (Optional) The field name to sort by. Required if the SortBy type is SortType.Field.
type SortType The method of sorting.