Sort Parameter

Syntax

The syntax for the sort parameter is:

s.sort=<fieldName>:<sortOrder>[, <fieldName>:<sortOrder>]*

A query string may contain only one s.sort parameter. The default sort order is sort by relevancy, if unspecified.


Function

The sort parameter sets the order which results are returned within a result set.

Example - Using the sort parameter

This query string causes the results to be returned in order of publication date descending:

  s.sort=PublicationDate:desc

Try It