You are here: C++ API > Classes > dtsSearchResults Class > dtsSearchResults::setSortKey Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchResults::setSortKey Method
Syntax
C++
void setSortKey(long iItem, const char * key);

Specify the string value to use when sorting search results.

When sort() is called with the dtsSortBySortKey flag, the search results list will be sorted according the value set, for each item in search results, using setSortKey. SetSortKey is useful when the sort must be done based on a computed combination of more than one field.