Search.../

Tickets: Supported Sorting and Faceting

Select functions allow sorting results by field. Use field:asc to sort results in ascending order, and field:desc to sort in descending order.

For example, to sort tickets by price in ascending order, and then by guestFullName in descending order, use this format in the options parameter:

{
sort: 'price:asc,guestFullName:desc'
}
js | Copy Code

The following table shows property support for sorting for the Ticket object:

FieldSortableFacetable
ticketNumberSortable
orderStatusSortable
priceSortable
orderFullNameSortable
guestFullNameSortable
scoreSortable
freeFacetable
archivedFacetable
checkedInFacetable
eventIdFacetable

Related content: listTickets

Was this helpful?