sort_by parameter controls the order of your search results. You can sort by any field in ascending or descending order, and combine up to three fields for multi-level sorting.
Quick start
Here’s how to sort transactions by creation date in descending order (newest first):Sort syntax
Basic sorting
Sort by a single field using the formatfield:direction:
Sort directions
Multi-field sorting
Combine up to three fields separated by commas. Fields are applied in order: the first field is primary, second breaks ties, third breaks remaining ties:- Status (ascending) - groups by status first
- Created date (descending) - within each status, newest first
- Amount (descending) - for same status and date, highest amount first
Common sorting patterns
1
Sort by creation date
Show the most recent records first, useful for transaction monitoring.
2
Sort by amount
Find the largest transactions first for financial analysis.
Best practices
- Default to newest first: Use
created_at:descfor time-sensitive data like transactions. - Combine with filtering: Sort filtered results for more targeted analysis.
- Limit multi-field sorting: Use 2-3 fields maximum to avoid complexity.