Page Properties Macro Sorting Discrepancies
Asked by Emma:

When using the Page Properties Macro, some macros will allow a user to use the sort arrows to sort by *any* column on the published page even when a default "Sort by" is set. However, in other page property reports on other pages, the report only sorts by the "Sort by" and the sort arrows on the other columns are unusable. Could someone please explain the expected functionality of the Sort by and sort arrows features in the page properties report macro? Thank you!


Answers:
author: e.gates
body: Hello, did you find a solution to this issue? I have been experiencing the same problems. Thanks!


author: Dominic Lagger
body: Hi [@Emma](/t5/user/viewprofilepage/user-id/4394331)

I can't reproduce the issue.

Can you explain exactly, what you did in the case, where it is not working? Perhaps provide a screenshot from the not sortable table.

Thanks

Regards, Dominic

comments: author: Emma
body: Hi Dominic!

Sure thing,

This page properties report allows you to sort by all columns on the published page:

![Sortable Macro SS1.png](https://community.atlassian.com/t5/image/serverpage/image-id/173309iC0065DB54CA163A2/image-size/large?v=v2&px=999 "Sortable Macro SS1.png")![Sortable Macro SS2.png](https://community.atlassian.com/t5/image/serverpage/image-id/173310i01D50483170A81F2/image-size/large?v=v2&px=999 "Sortable Macro SS2.png")


author: Emma
body: This page properties report does not allow you to sort by any column on the published page:

![Unsortable Macro SS1.png](https://community.atlassian.com/t5/image/serverpage/image-id/173312i818A497636D00507/image-size/large?v=v2&px=999 "Unsortable Macro SS1.png")![Unsortable Macro SS2.png](https://community.atlassian.com/t5/image/serverpage/image-id/173313i5556A862D5E804DD/image-size/large?v=v2&px=999 "Unsortable Macro SS2.png")


author: Emma
body: I have only been able to find one example in our instance so far of the macro being sortable by every column when published, so didn't know if that was expected behavior. Appreciate any help, thank you!


author: Dominic Lagger
body: Hi [@Emma](/t5/user/viewprofilepage/user-id/4394331)

In the 2nd screenshot the "Sort by" field is grey and you can not edit it? Is that the problem?

This is a really strange behaviour. Did you try to create a new "page properties macro" with the same settings?

Regards, Dominic


author: Emma
body: Hi Dominic,

It's greyed out because my cursor was over it during the screenshot, but it is editable.

I have created a new macro with the same settings. When I used it for the label "portal_pi17", it allows me to click the sort arrows to sort by all columns on the published page. When I used it for the label "sf_pi17" it did not allow me to sort using the sort arrows on the published page even with the same settings. It's very strange. Is it expected that you *should*be able to sort by any of the columns on the published page?


author: Dominic Lagger
body: This is so strange, I have absolutely no idea why you have this behaviour...

Please contact the atlassian support.

<https://support.atlassian.com/contact/#/>

Regards, Dominic


author: Emma
body: Will do, thank you!


Tags: confluence-server

server