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
By default, sorting is performed in **ascending **order. Use
reverse: true to sort in descending order.