Sorting
Easily sort your rows based on one or several criteria.
How to sort
Click a column header to toggle sort:
Sort by ASC → DESC → ASC … (cycles)
Use the column menu (popover on the column header):
Sort by ASC
Sort by DESC
Unsort
Multi-column sorting
Sort by multiple columns at the same time.
Hold Ctrl or Shift while clicking headers (use Command or Shift on macOS).
The data grid applies sorts in the order you add them (first criterion, then second, etc.).
To change priority, clear and re-apply sorts in the desired order.
Disable Sorting
To remove sort on a single column: open the column menu → Unsort.
To clear all sorts: unsort each sorted column (repeat as needed).
Behavior details
Sorting is server-side in apex, which queries and returns the sorted results to the data grid.
Last updated