Browse and edit table data / Browse and find
Sort records by a column
Choose a column and cycle its sort direction to reload the table in the requested order.
Where to open it
Table Content → click the header of the column to sort, such as id in the demo table.
Default shortcuts
The default key targets the first column; use the header for any other column.
| Action | Windows / Linux | macOS | Focus and effect |
|---|---|---|---|
| Cycle sorting on the first column | Ctrl+Shift+O | ⌘+Shift+O | Focus the table to simulate a click on its first column header. Choose other columns through their headers. |
| Cycle sorting for a chosen column | Click the column header | Click the column header | Click the intended column header to cycle ascending, descending, and no explicit sort; the initial direction depends on preferences. |
- Settings → Shortcuts shows configurable bindings; customized keys take precedence. Fixed dialog keys and mouse gestures may be managed by their own controls.
- On macOS, ⌘ means Command and ⌥ means Option. Function keys may require Fn. Delete means forward delete (often Fn+⌫ on a compact Mac keyboard); use the menu when Insert is unavailable.
Before you start
Use a relational Table Content tab with read permission, loaded field metadata, and several distinct values in the chosen column. Keep the active connection, database/schema, and table clear. The SQL editor's result tab does not use this header sorting action.
Follow these steps
- Open the intended table and wait for its fields and rows to load. For this example, clear the active Composite Query tag with its adjacent × and wait for ordinary table browsing to reload.
- Check the column's existing sort indicator. Starting from no explicit sort, click id to request ascending order, click it again for descending order, then again to remove the explicit sort. If the column already has a direction, the next click continues from that state.
- Wait for each reload before clicking again. Sorting returns to page 1 with the current page size; check the header indicator, several id values, and the pager. The captures show ascending id values 1, 2, 3, … and descending values 295, 294, 293, ….
- Recheck the record's identity after sorting before starting an edit.
Example
Starting with no explicit sort on id:
Click 1 → id ASC → increasing values
Click 2 → id DESC → decreasing values
Click 3 → no explicit column sort
Captured ASC: 1, 2, 3, …
Captured DESC: 295, 294, 293, …What to expect
The two captures show id ascending from 1, 2, 3, … with an upward header indicator, then descending from 295, 294, 293, … with a downward indicator. Both show page 1, page size 100, and 295 Rows in the pager; no Composite Query tag is visible. Removing the explicit sort removes its indicator, but the resulting row order is not guaranteed.


Scope and limits
- This control requests one column at a time; choosing another column replaces the active column after the reload. It does not build a multi-column ORDER BY.
- The table reloads through the database's page-query path, using the chosen sort before pagination. Later ordinary page changes reuse the active sort. It is not limited to rearranging the rows already visible on screen.
- Sorting does not reapply the separate SQL query conditions. The Composite Query tag can remain after ordinary table loading; clear it before this walkthrough, and do not treat a remaining tag as proof of a filtered result.
- An initial table load may already use primary-key descending order when configured, so the first click is not always ascending. Without an explicit order, row positions are not guaranteed; equal sort values can also change relative positions.
- Supported types, NULL placement, collation, and non-relational sorting depend on the selected engine. This id walkthrough uses the owner's MySQL demo table; it does not establish MongoDB or Redis sorting behavior.
If something goes wrong
- If the direction differs from the expected next step, check the current indicator and allow the previous reload to finish; the cycle continues from the stored state.
- If rows disappear or the order does not match, read the load error/feedback and check the active table, field type, page, and query conditions. A changed header alone does not prove that the database reload succeeded.