You are here: C++ API > Enumerations > SortFlags Enumeration
dtSearch Text Retrieval Engine Programmer's Reference
SortFlags Enumeration

Flags to control the sorting of search results.

File: dtsearch.h

enum SortFlags { dtsSortAscending = 2, dtsSortDescending = 0, dtsSortByName = 4, dtsSortByDate = 8, dtsSortByHits = 0x0010, dtsSortBySize = 0x0020, dtsSortByField = 0x0040, dtsSortByUserField = 0x0040, dtsSortByIndex = 0x0080, dtsSortByType = 0x0100, dtsSortByTitle = 0x0200, dtsSortByLocation = 0x0400, dtsSortByTime = 0x0800, dtsSortBySortKey = 0x1000, dtsSortCaseInsensitive = 0x010000, dtsSortNumeric = 0x020000, dtsSortPdfUseTitleAsName = 0x040000, dtsSortHtmlUseTitleAsName = 0x080000, dtsSortFloatNumeric = 0x100000, dtsSortCleanText = 0x200000, dtsSortByHitCount = 0x400000, dtsSortByRelevanceScore = 0x800000, dtsSortByFullName = 0x1000000, dtsSortByWord = 0x2000000, dtsSortByDocCount = 0x4000000 };
dtsSortAscending = 2
Sort in ascending order.
dtsSortDescending = 0
Sort in descending order.
dtsSortByName = 4
Sort by filename.
dtsSortByDate = 8
Sort by modified date.
dtsSortByHits = 0x0010
Sort by hit count or relevance, depending on search type. Deprecated: Use dtsSortByHits or dtsSortByRelevanceScore instead.
dtsSortBySize = 0x0020
Sort by file size.
dtsSortByField = 0x0040
Sort by user-defined field.
dtsSortByUserField = 0x0040
Sort by user-defined field (deprecated, use dtsSortByField).
dtsSortByIndex = 0x0080
Sort by index retrieved from.
dtsSortByType = 0x0100
Sort by file type.
dtsSortByTitle = 0x0200
Sort by file title.
dtsSortByLocation = 0x0400
Sort by the path of the file.
dtsSortByTime = 0x0800
Sort by modification time, ignoring the date.
dtsSortBySortKey = 0x1000
Sort by caller-specified sort key (use setSortKey for each item to specify the key).
dtsSortCaseInsensitive = 0x010000
Make string comparisons in the sort case-insensitive.
dtsSortNumeric = 0x020000
Interpret sort values as numbers instead of text. This would cause "20" to be considered greater than "9". The sort key will be a signed, 32-bit integer.
dtsSortPdfUseTitleAsName = 0x040000
When sorting by filename, use the PDF Title as the filename for PDF files.
dtsSortHtmlUseTitleAsName = 0x080000
When sorting by filename, use the HTML Title as the filename for HTML files.
dtsSortFloatNumeric = 0x100000
Sort by the floating point numeric value of a field instead of its string value.
dtsSortCleanText = 0x200000
Remove some leading punctuation or white space from sort value before sorting. Also removes "re:", "fw:", and "fwd:".
dtsSortByHitCount = 0x400000
Sort by number of hits.
dtsSortByRelevanceScore = 0x800000
Sort by relevance score.
dtsSortByFullName = 0x1000000
Sort by path and filename.
dtsSortByWord = 0x2000000
In WordListBuilder only, sort by word.
dtsSortByDocCount = 0x4000000
In WordListBuilder only, sort by document count.
Copyright (c) 1995-2019 dtSearch Corp. All rights reserved.