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
12
13 | use Ibexa\Contracts\Shipping\Shipment\Query\CriterionInterface;
use Ibexa\Contracts\Shipping\Shipment\Query\SortClause\UpdatedAt;
use Ibexa\Contracts\Shipping\Shipment\ShipmentQuery;
/** @var CriterionInterface $criteria */
$shipmentQuery = new ShipmentQuery(
$criteria,
[
new UpdatedAt(
UpdatedAt::SORT_ASC
),
]
);
|