Search

Sorting Search Results

Pass a Sort Parameter to a search request in order to Sort results.

The Sort Parameter takes two arguments:-

  1. SortBy - What Search Results are Sorted By.
  2. 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 Count
  • Date Sort by Upload Date
  • Size Sort by Document Size
  • Type Sort by Document Type
  • Field 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
}