You are here: COM Interface > Interfaces > ISearchResults Interface > ISearchResults::SetSortKey Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
ISearchResults::SetSortKey Method
Syntax
IDL
HRESULT SetSortKey(BSTR newKey);

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