Close
dtSearch Engine API for Java
WordListBuilder.sort Method

Sort the word list by document count or term

Syntax
Java
public boolean sort(int sortFlags);

True if the list could be sorted, or false if there was not enough memory to sort list.

The following SortFlags are supported: dtsSortByWord, and dtsSortByDocCount. Use dtsSortAscending to specify ascending order. Otherwise the sort will be in descending order. Sort() only works with listFieldValues and listMatchingWords.