Skip to content

Shipment Status Sort Clause

The Status Sort Clause sorts search results by shipment status.

Arguments

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

Example

1
2
3
4
5
6
7
$shipmentQuery = new ShipmentQuery(
    $criteria,
    [
        new \Ibexa\Contracts\Shipping\Shipment\Query\SortClause\Status(
            \Ibexa\Contracts\Shipping\Shipment\Query\SortClause\Status::SORT_ASC)
    ]
);