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 UpdatedAt Sort Clause

The UpdatedAt Sort Clause sorts search results by the date and time when shipment status was updated.

Arguments

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

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use Ibexa\Contracts\Shipping\Shipment\ShipmentQuery;

/** @var \Ibexa\Contracts\Shipping\Shipment\Query\CriterionInterface $criteria */
$shipmentQuery = new ShipmentQuery(
    $criteria,
    [
        new \Ibexa\Contracts\Shipping\Shipment\Query\SortClause\UpdatedAt(
            \Ibexa\Contracts\Shipping\Shipment\Query\SortClause\UpdatedAt::SORT_ASC
        ),
    ]
);