# CustomPrice Sort Clause

> For the complete documentation index, see [llms.txt](https://doc.ibexa.co/en/saas/llms.txt).

CustomPrice Sort Clause

The `CustomPrice` Sort Clause sorts search results by the product's custom price for a selected customer group.

## Arguments

- `currency` - a `CurrencyInterface` object representing the currency to check price for
- (optional) `sortDirection` - Query or LocationQuery constant, either `Query::SORT_ASC` or `Query::SORT_DESC`
- (optional) `customerGroup` - a `CustomerGroupInterface` object representing the customer group to check prices for. If you don't provide a customer group, the query uses the group related to the current user.

## Limitations

The `CustomPrice` Sort Clause isn't available in the Legacy Search engine.
