Sorting
Sorting decides the order in which records are shown. Every query has one sort — a field and a direction — with Created, descending (newest first) as the default, and tables let visitors re-sort by clicking column headers. Sorting is done on the server, after filters and permissi
Sorting decides the order in which records are shown. Every query has one sort — a field and a direction — with Created, descending (newest first) as the default, and tables let visitors re-sort by clicking column headers. Sorting is done on the server, after filters and permissions, so paging stays consistent.
When to use
Set the default sort on the Data tab so a list opens in the most useful order (upcoming appointments first, highest amounts first, alphabetical customers). Leave column sorting on for tables where people need to explore.
Set the default sort of a query
- Select the component and open the Data tab.
- Sort by: Created or any field of the entity.
- Direction: Ascending (A→Z, 0→9, oldest→newest) or Descending.
How values are ordered
- Numbers compare as numbers.
- Text compares alphabetically, case-insensitively and with natural numbering (Job 2 before Job 10).
- Dates and date-times stored in ISO form order chronologically.
- Select options order by their value text, not by their position in the option list.
- Empty values always come last, in both directions.
Sorting in tables and grids
Tables and data grids have a Sortable setting. When on, visitors click a column header to sort ascending, click again for descending; the current sort replaces the query's default sort for that visitor. Sorting resets paging to the first page.
Sorting in the records editor
On an entity's Records tab, click a column header to sort ascending, again for descending, a third time to remove the sort. Record title, system columns and Created can all be sorted.
Examples
Appointments calendar list: sort Start · ascending (next appointment first) Invoices: sort Amount · descending (largest first) Customers: sort Name · ascending (alphabetical) Activity feed: sort Created · descending (default)
Common mistakes
- Sorting a date stored as text: only ISO-formatted text sorts chronologically; use Date or Date & time fields.
- Expecting status order to follow the option list: sort by a separate numeric Order field, or use a kanban/pipeline component that groups by status.
- Multi-level sorting: a query has one sort field; use filters or separate lists for secondary ordering.