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++
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.

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