Sort Component
Order your dataset based on one or more keys.
Last updated:
The Sort Component allows you to reorganize your data arrays based on specific field values. It uses an intelligent collation engine that handles numbers and strings correctly.
⚙️ Configuration
| Property | Type | Description |
|---|---|---|
Sort Key | string | The field path to sort by (e.g., price). |
Direction | enum | Ascending (A-Z, 0-9) or Descending (Z-A, 9-0). |
✨ Features
- Numeric Awareness: Correctlty sorts
1, 2, 10instead of1, 10, 2. - Nested Sorting: Sort by fields deep within objects (e.g.,
user.profile.score). - Multi-key Sort: (Coming Soon) Chain multiple sort components to define primary and secondary sort orders.
🚀 Pro Tip
Sorting is a memory-intensive operation. For datasets over 100MB, we recommend using a Limit Component before sorting if you only need the top results.
🔗 Navigation
- Previous: Filter
- Next: Deduplicate