- Type:
list<string>
- Default:
[]
(no custom ranking) - Scope:
settings
asc(attribute)
or desc(attribute)
to specify the sort direction for each attribute.
To learn more, see Custom ranking.
Usage
- Attribute names are case-sensitive.
- Records with missing or
null
values for a custom ranking attribute are considered equal and are placed at the end of the result list, regardless of sort order. - Boolean values are sorted alphabetically:
false
comes beforetrue
in ascending order, andtrue
comes beforefalse
in descending order.
Modifiers
asc
Sort by increasing value of the attribute.
desc
Sort by decreasing value of the attribute.
Example
The following example ranks tied records by decreasing popularity. Records with equal popularity will be ranked by ascending price.Current API clients
Current API clients
Legacy API clients
Legacy API clients