Skip to content

Order Id Sort Clause

The Id Sort Clause sorts search results by order Id.

Arguments

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

Example

1
2
3
4
5
6
7
$orderQuery = new OrderQuery(
    $criteria,
    [
        new \Ibexa\Contracts\OrderManagement\Value\Order\Query\SortClause\Id(
            \Ibexa\Contracts\OrderManagement\Value\Order\Query\SortClause\Id::SORT_ASC)
    ]
);