Contents

Sorting

A sort specification used in a recommendation query request to order results.

Declaration

object RecommendationSorting

Properties

NameTypeDescription
field Requiredstring

The name of the field to sort by. Use creationTime to sort by when the recommendation was created, or expirationTime to sort by recommendation expiry and act on time-sensitive items first.

orderRecommendationSortingOrder

The sort direction. Defaults to ASC when omitted. See SortingOrder.

Discussion

The Sorting specifies one sort dimension in the sorting array of a QueryRequest. The sorting array supports multiple entries, which the system applies in order. The first entry is the primary sort, the second is the tiebreaker, and so on.

Example

{
  "field": "creationTime",
  "order": "DESC"
}

See Also