Search Sorting
The Search API supports sorting. This means that a search result sorted in the way you want.
SortAttribute
This is the name of the attribute on which you wish to sort
SortDirection
Sort results on ascending (= ASC) or descending (= DESC) values of the SortAttribute.
Note: SortDirection is required when SortAttribute is used!
Examples
This search request will return an ascending sorted result for the attribute productName.
{
"pageSize": 10,
"page": 1,
"sortAttribute": "productName",
"sortDirection": "ASC"
}