Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

Shipment Id Sort Clause

The Id Sort Clause sorts search results by shipment Id.

Arguments

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

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use Ibexa\Contracts\Shipping\Shipment\Query\CriterionInterface;
use Ibexa\Contracts\Shipping\Shipment\Query\SortClause\Id;
use Ibexa\Contracts\Shipping\Shipment\ShipmentQuery;

/** @var CriterionInterface $criteria */
$shipmentQuery = new ShipmentQuery(
    $criteria,
    [
        new Id(
            Id::SORT_ASC
        ),
    ]
);