You are here: C++ API > Classes > dtsSearchResults Class > dtsSearchResults::setSortKey Method
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchResults::setSortKey Method
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.

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