You are here: C++ API > Classes > dtsWordListBuilder Class > dtsWordListBuilder::sort Method
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.

Copyright (c) 1995-2025 dtSearch Corp. All rights reserved.