---
updatedAt: 2026-03-30T13:14:20.000Z
agentTools:
  siteIndex: https://documentation.bloomreach.com/llms.txt
  projectIndex: https://documentation.bloomreach.com/discovery/llms.txt
---

# Sorting

You can alter the sequence in which products are displayed by passing the **sort** parameter.

## Sort by a single value

```curl Sort by price in ascending order
&sort=price+asc
```
```curl Sort by sale price in descending order
&sort=sale_price+desc
```

```curl Sort by launch date in ascending order
&sort=launch_date+asc
```
```curl Sort by brand name, from A to Z in ascending order
&sort=brand+asc
```

## Sort by multiple values

```curl Sort by reviews in descending order, then by sale price in descending order
#Multiple values must be comma-separated
#Sorting values are applied from left to right
&sort=reviews+desc,sale_price+desc
```

> 👍
>
> When sorting on text fields, capital letters appear before lowercase letters. To use a field for text sorting, send all values in lowercase.

## Example request

```curl Product Search API request, sort by sale price in ascending order
GET https://core.dxpapi.com/api/v1/core/?
account_id=<Bloomreach Provided Account ID>
&auth_key=jazzhands
&domain_key=example_com
&request_id=8830241055597
&_br_uid_2=uid=7797686432023:v=11.5:ts=1428617911187:hc=55
&ref_url=http://www.example.com/home
&url=http://www.example.com/index.html?q=dresses
&request_type=search
&rows=20
&start=0
&fl=pid,title,brand,price,sale_price,colors,sizes,thumb_image,price_range,sale_price_range
&q=dresses
&search_type=keyword
&sort=sale_price+asc
```

# How Sort affects Ranking and Recall

***

**Ranking**: Sort overrides ranking rules (Boost, Bury, Slot rules). When you pass the sort parameter in the API requests, it overrides any [ranking rules](https://documentation.bloomreach.com/discovery/docs/boost-and-position-lock-your-first-product) configured for the search query/category and ranks the products based on the sort parameter value.

**Recall**: Sort does not affect the recall set. The dashboard rules that influence the recall (Include/Exclude rules) will continue to apply.