Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsWordListBuilder::sort Method

Sort words in the WordListBuilder

Syntax
C++
bool sort(long sortFlags);
Parameters
Description
long sortFlags
SortFlags values specifying the type of sort to perform

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.