sortFacetValuesNumerically method: FacetFilter class

Syntax

sortFacetValuesNumerically(level, sort_ascending)

Description

Use this method to sort facet values numerically for the specified level. If the facet values are not numbers, this method will cause an error when it is executed at run time.

Parameters

Parameter Description

level

Specifies the level in the facet path hierarchy as an integer. For facets without a path hierarchy, specify 1.

sort_ascending

Specifies the sorting order as a Boolean value: True for ascending order and False for descending order sorting.

Returns

None.