Navigation

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

PropertyTypeDescription
Sort KeystringThe field path to sort by (e.g., price).
DirectionenumAscending (A-Z, 0-9) or Descending (Z-A, 9-0).

✨ Features

  • Numeric Awareness: Correctlty sorts 1, 2, 10 instead of 1, 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