You are here: COM Interface > Interfaces > IWordListBuilder Interface > IWordListBuilder::Sort Method
dtSearch Text Retrieval Engine Programmer's Reference
IWordListBuilder::Sort Method

Sort the word list by document count or term

HRESULT Sort([in] long flags, [out, retval] VARIANT_BOOL * pVal);

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-2023 dtSearch Corp. All rights reserved.