Skip to content

ProductCode Sort Clause

The ProductCode Sort Clause sorts search results by the Product code.

Arguments

  • (optional) sortDirection - Query or LocationQuery constant, either Query::SORT_ASC or Query::SORT_DESC

Example

1
2
3
4
5
6
7
$query = new ProductQuery(
    null,
    null,
    [
        new \Ibexa\Contracts\ProductCatalog\Values\Product\Query\SortClause\ProductCode()
    ]
);