You are here: C++ API > Classes > dtsSearchResults Class > dtsSearchResults::sort Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchResults::sort Method
Syntax
C++
virtual void sort(long aflags, const char * userField);
Parameters
Description
flags
Specifies the type of sort. See SortFlags for values.
userFields
If dtsSortByField is set in flags, the field in dtsSearchResultsItem.userFields to use as the sort key

Sorts the search results set according to the SortFlags values in flags.