Skip to content

Payment Id Sort Clause

The Id Sort Clause sorts search results by payment ID.

Arguments

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

Example

1
2
3
4
5
6
7
$paymentQuery = new PaymentQuery(
    $criteria,
    [
        new \Ibexa\Contracts\Payment\Payment\Query\SortClause\Id(
            \Ibexa\Contracts\Payment\Payment\Query\SortClause\Id::SORT_ASC)
    ]
);