SortFacetValuesBy property: SearchQuery class

Description

Use this property to set or return a String value indicating the sort order by which facet nodes are sorted:

Value Description

ALPHA_ASC

Sort by node name alphabetically ascending.

ALPHA_DES

Sort by node name alphabetically descending.

COUNT_ASC

Sort by document count numerically ascending.

COUNT_DES

Sort by document count numerically descending.

COUNT_DES is the default value, which means that facet nodes with highest document count are displayed first in the list.

This property is not required.

This property is read/write.