The getCatalogData query supports customizable sorting to help control the order in which catalog items are returned. This is particularly useful when users need to view trainings by title, date, or duration. Sorting is configured using two arguments: sortKey and reverse.
Sorting can be combined with pagination and filtering arguments to further refine the results.

Sorting Arguments

ArgumentTypeDescription
sortKeyCatalogSortKeysSpecifies the field to sort by. See available options below.
reverseBooleanIf true, reverses the sort order (e.g., from ascending to descending). Default is false.
By default, sorting is performed in **ascending **order. Use reverse: true to sort in descending order.

**Available **sortKeyValues

Sort KeyDescriptionUnderlying Field
TITLESorts trainings alphabetically by titleTraining title
DURATIONSorts by the training’s duration labelDuration taxonomy label
PUBLISHEDSorts by publication dateEntity publication timestamp