Combining Table Filter and Table Transformer -> Sorting issue
Asked by Tommy Str?mme:

Hi,  
I have the Table Filter on top, then the Table Transformer and Finally the Page Properties Report.

It works fine for the most, however after adding the Table Transformer the Table Filter is not doing its sorting anymore. I have chosen to Sort by Prioirty column, that used to work fine, but now its listed a bit random. Have to physically click on the Priority Header to get it right.

The Table Filter does work with the pre-set filters though, and only shows me what I have pre-selected, so its not entirely not working, just the sorting bit.

Any help appreciated!

Regards

Tommy


Answers:
author: Stiltsoft support
body: Hi [@Tommy Str?mme](/t5/user/viewprofilepage/user-id/5381475) ,

As I saw on the screenshots from your previous question, the Priority column has a kind of a dropdown inside its cell or smth: what macro/app are you using to create it?

How does the sorting works with plain text or numbers?

comments: author: Tommy Str?mme
body: Good morning,

The dropdown is this macro:

[Save time with Easy Dropdown Menu in Confluence - Atlassian Community](https://community.atlassian.com/t5/Confluence-articles/Save-time-with-Easy-Dropdown-Menu-in-Confluence/ba-p/1673889)

However, I tried to change the sorting now to one of the other columns with no dropdowns, "Owner", which is plain text and that didn't work either. Usually, before the Table Transformer, I would use both Priority and then Owner.

The filters work though.

Tommy

![active projects.png](https://community.atlassian.com/t5/image/serverpage/image-id/310701iDF3B426882B6D225/image-size/large?v=v2&px=999 "active projects.png")![sortowner.png](https://community.atlassian.com/t5/image/serverpage/image-id/310702i0804C88579E8011D/image-size/large?v=v2&px=999 "sortowner.png")


author: Tommy Str?mme
body: Seems like I found a workaround. I added this at the end of of the Table Transformation code:

ORDER BY Priority ASC;

tommy


author: Stiltsoft support
body: Hi,

Indeed the Table Transformer macro and its ORDER BY function allows you to sort your table. Besides, the macro uses its own internal sorting logic, so it works better, for example, regarding dates.

The Table Filter macro uses a standard Confluence logic for sorting, it just makes it a default one. By standard sorting I mean the standard sorting arrows that appear in the headers of your tables.

The sorting in the Table Filter regarding simple text strings shouldn't be broken though. You may check what version of the app you are currently using (the up-to-date one is 11.0.0), update the app and if the issue persists, create a [support request](https://stiltsoft.atlassian.net/servicedesk/customer/portal/14).

Please attach the page storage of your page with the Page Properties Report and our macros and one of the pages with the Page Properties macro (upper right corner of the page -\> menu ... -\> View storage format). We'll recreate them and take a look.


author: Tommy Str?mme
body: Hi,

I am not an admin in our Confluence instance (yet), but from the looks of it (by just clicking edit on the table filter) it says in the top right of it that its v10.1.2. Also tried to find "view storage format" on the page that holds the page properties report with the table filter macro and the table transformer, but I don't think I have "view storage format"

Will try to get the admin to update to 11.0.0 and see if that helps :)

No rush though, the sorting workaround was great!

Thanx

Tommy

![snip.png](https://community.atlassian.com/t5/image/serverpage/image-id/311243i7520C8CBE2E1F69E/image-size/large?v=v2&px=999 "snip.png")


author: Stiltsoft support
body: Hi,

The View storage format option is also enabled by your Confluence administrator or he/she may do it for you (for them it should be always visible).

Glad that everything works through a workaround!


author: Brett Hall
body: We see the same issue [@Tommy Str?mme](/t5/user/viewprofilepage/user-id/5381475). Adding the ORDER BY to the transformer fixes it, except that the user ability to sort Priority ASC or DESC by clicking the header row is still non-functional. I'll file a ticket with the very-helpful Stiltsoft support team.


Tags: confluence-data-center

data-center

filter

table

table-filter

table-filter-and-charts

table-filter-charts-spreadsheets

table-transformer