DtSearchSortResults(library call) DtSearchSortResults(library call)
NAMEDtSearchSortResults — Sort DtSearch results lists
SYNOPSIS
#include <Dt/Search.h>
int DtSearchSortResults(
DtSrResult **list,
int sort_type);
DESCRIPTIONDtSearchSortResults sorts lists returned from DtSearchQuery.
Note that results lists are already presorted by proximity by DtSearch‐
Query.
ARGUMENTS
list Specifies results lists returned from DtSearchQuery.
sort_type Specifies the DtSrResult sort field. Valid values are:
DtSrSORT_PROX
Sorts in ascending DtSrResult.proximity order.
DtSrSORT_DATE
Sorts in descending DtSrResult.objdate order.
RETURN VALUEDtSearchSortResults returns DtSrERROR if sort_type is invalid. Other‐
wise, it returns DtSrOK.
SEE ALSODtSrAPI(3), DtSearchQuery(3), DtSearchFreeResults(3), DtSearchMergeRe‐
sults(3)
DtSearchSortResults(library call)