You are here: C++ Support Classes > dtSearch Namespace > Classes > DSearchResults Class > DSearchResults::sort Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
DSearchResults::sort Method
Syntax
C++
void sort(long aflags, const char * userField) override;
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.