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.

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
 8
 9
10
11
12
13
use Ibexa\Contracts\Payment\Payment\PaymentQuery;
use Ibexa\Contracts\Payment\Payment\Query\SortClause\Id;

$criteria = null;

$paymentQuery = new PaymentQuery(
    $criteria,
    [
        new Id(
            Id::SORT_ASC
        ),
    ]
);