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

Sorts the search results set according to the SortFlags values in flags.

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
Copyright (c) 1995-2020 dtSearch Corp. All rights reserved.