How to sort a table in Confluence
Confluence can sort native table rows for a viewer. Simple Tables adds sorting as part of a reusable interactive table configuration.
Sort a native Confluence table
Publish the page, locate the sort control in a header cell, and select it to change the visible row order. Atlassian notes that viewer-side ordering may be temporary unless the table is sorted while editing and then published.
- Make sure the table has a header row
- Choose the relevant column header
- Select again to change or clear the order
Sort with Simple Tables
Open the Simple Table setup, confirm the column data types, publish the macro, and use the table headers to sort. Correct data types help numbers and dates sort by value rather than as plain text.
Check the result
Test empty values, numbers, dates, and mixed text. If a column sorts unexpectedly, review its configured data type before changing the source data.
Sources used for this guide
Related Simple Tables documentation
Frequently asked questions
Can Confluence sort tables without an app?
Yes. Native Confluence tables provide header-based sorting for published tables.
Why do numbers sometimes sort incorrectly?
Values treated as text sort lexicographically. Configure a number data type when numeric ordering is required.