Search
Sorting Search Results
Pass a Sort
Parameter to a search request in order to Sort results.
The Sort Parameter takes two arguments:-
SortBy
- What Search Results are Sorted By.Ascending
(Boolean) Sort Results in Ascending Order default: false
Sort By Options
Use SortBy
to control the ordering of search results, with one of the following options:
Hits
Sort Results by Hit CountDate
Sort by Upload DateSize
Sort by Document SizeType
Sort by Document TypeField
Sort by Field Value
If Field
is passed, an additional FieldName
Parameter must be sent containing the name of the field to be sorted by.
Example Sort Options, Title ordered Ascending (A-Z):
{
"SortBy" : "Title",
"Ascending" : true
}