Home > doofinder > QuerySort > set

QuerySort.set() method

Set one or more values to sort the query.

Signature:

set(value: string, order?: SortOrder): number;

Parameters

Parameter Type Description
value string Field name to sort the query.
order SortOrder Order of the sorting.

Returns:

number

the new length of the list of sortings.