You are here: Symbol Reference
> dtSearch.Engine Namespace
> SortFlags Enumeration
Close
dtSearch .NET Standard API 2021.02
dtSearch.Engine.SortFlags Enumeration

Flags to control the sorting of search results.

public enum SortFlags { dtsSortUndefined = 0, dtsSortNone = 1, 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 }
Members
Description
dtsSortAscending
Sort in ascending order.
dtsSortDescending
Sort in descending order.
dtsSortByName
Sort by filename.
dtsSortByDate
Sort by modified date.
dtsSortByHits
Sort by hit count or relevance, depending on search type. Deprecated: Use dtsSortByHits or dtsSortByRelevanceScore instead.
dtsSortBySize
Sort by file size.
dtsSortByField
Sort by user-defined field.
dtsSortByUserField
Sort by user-defined field (deprecated, use dtsSortByField).
dtsSortByIndex
Sort by index retrieved from.
dtsSortByType
Sort by file type.
dtsSortByTitle
Sort by file title.
dtsSortByLocation
Sort by the path of the file.
dtsSortByTime
Sort by modification time, ignoring the date.
dtsSortBySortKey
Sort by caller-specified sort key (use setSortKey for each item to specify the key).
dtsSortCaseInsensitive
Make string comparisons in the sort case-insensitive.
dtsSortNumeric
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
When sorting by filename, use the PDF Title as the filename for PDF files.
dtsSortHtmlUseTitleAsName
When sorting by filename, use the HTML Title as the filename for HTML files.
dtsSortFloatNumeric
Sort by the floating point numeric value of a field instead of its string value.
dtsSortCleanText
Remove some leading punctuation or white space from sort value before sorting. Also removes "re:", "fw:", and "fwd:".
dtsSortByHitCount
Sort by number of hits.
dtsSortByRelevanceScore
Sort by relevance score.
dtsSortByFullName
Sort by path and filename.
dtsSortByWord
In WordListBuilder only, sort by word.
dtsSortByDocCount
In WordListBuilder only, sort by document count.
Copyright (c) 1998-2021 dtSearch Corp. All rights reserved.