Home > doofinder > QuerySort > add

QuerySort.add() method

Add a sorting to the end of the list of sortings.

Signature:

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

Parameters

Parameter Type Description
value string A field name as string.
order SortOrder The order of the sorting.

Returns:

number

the new length of the list of sortings.