Home > doofinder > QuerySort > add

QuerySort.add() method

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

Signature:

add(value: FieldSorting | GeoSorting): number;

Parameters

Parameter Type Description
value FieldSorting | GeoSorting A valid input sorting value.

Returns:

number

the new length of the list of sortings.