Order Updated Sort Clause
The Updated Sort Clause sorts search results by the date and time when order status was updated.
Arguments
- (optional)
sortDirection - Updated constant, either Updated::SORT_ASC or Updated::SORT_DESC
Example
1
2
3
4
5
6
7
8
9
10
11
12 | use Ibexa\Contracts\OrderManagement\Value\Order\OrderQuery;
$criteria = null;
$orderQuery = new OrderQuery(
$criteria,
[
new \Ibexa\Contracts\OrderManagement\Value\Order\Query\SortClause\Updated(
\Ibexa\Contracts\OrderManagement\Value\Order\Query\SortClause\Updated::SORT_ASC
),
]
);
|