Can I sort table created by "Content Report Table"?
Asked by Anssi K?ki:

I'd like to sort table of pages (in alphabetical order by name) created with Content Report Table. Currently the pages are sorted in creation order (newest to oldest), how can I change that?


Answers:
author: thais
body: Hi, Anssi,

It's not possible to sort the pages in alphabetical order by name using the [Content Report Table](https://confluence.atlassian.com/confcloud/content-report-table-macro-724765181.html).

We do have a feature request for it here: [CONFCLOUD-31438 - Content Report Table macro should have sorting parameter](https://jira.atlassian.com/browse/CONFCLOUD-31438).

We suggest you add yourself there to receive updates and vote for increase its popularity.  
More information on new features can be seen [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).


author: Andrey Khaneev _StiltSoft_
body: You can sort Content Report Table by page title by clicking the table header cell.

In case you need to have permanent sorting applied, you can use [Table Filter](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) macro and set [Default sorting](https://docs.stiltsoft.com/display/TableFilter/Managing+Look+of+the+Table+and+Filtration+Pane#ManagingLookoftheTableandFiltrationPane-Applyingthedefaultsortingordertocolumns) option to "Title ?".

comments: author: Jerry Dodge
body: I see no such option in the Content Report Table. The column headers are just plain text, no clickability.


author: Ole J?rgen
body: The corresponding jira issue also indicate that it's at least possible to sort explicitly ("... if we do not explicitly sort by the page title column"), but I can not find any way to sort the table in neither edit-mode or view-mode..

Reading <https://community.atlassian.com/t5/Confluence-questions/Can-I-sort-table-created-by-quot-Content-Report-Table-quot/qaq-p/746933#M115332> I think the feature has been nerfed at some point :/


author: Katerina Kovriga {Stiltsoft}
body: [@Ole J?rgen](/t5/user/viewprofilepage/user-id/4243001) as [@Andrey Khaneev _StiltSoft_](/t5/user/viewprofilepage/user-id/781696) has mentioned before, wrap the Content Report Table macro into the [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/Sorting%2C+freezing+and+other+table+viewing+options#Sorting,freezingandothertableviewingoptions-Applythedefaultsortingordertocolumns) macro provided by the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app and apply the required sorting.

And here is a short 2-minute [video tutorial](https://youtu.be/Svxz1MJBMv4) how to aggregate (create pivots) and visualize your reports based on the Content Report Table macro.


author: Ole J?rgen
body: Thanks I missed that (Table filter is a third-party paid confluence app).


author: Katerina Kovriga {Stiltsoft}
body: Yes, it is. It works both with plain manually created tables and with Confluence macros that return data in a tabular format (Content Report Table, Page Properties Report), so you'll be able to apply sorting (filtering, pagination, etc.) to such tables as well.


author: Andreas Kronwald
body: The only workaround we have found is to add an ID to the Page Content Table. Then we use this ID to sort the table but don't show it in the Content Report.

Of course you have to manage the ID manually, which is annoying...