Chart macro shows incorrect sort
Asked by Vamshi Korde:

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

You'll notice in the above chart macro that the sorting is incorrect. Tried every option to fix it by making sure that there are no additional spaces etc.. nothing helped. Is this a known issue?


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hello [@Vamshi Korde](/t5/user/viewprofilepage/user-id/3735050),  

Please wrap your source table with the [Table Filter](https://docs.stiltsoft.com/display/TFAC/How+to+use+Table+Filter+macro) macro, then open its macro browser and apply 'Default sorting':  

![2020-12-17_19h52_57.png](https://community.atlassian.com/t5/image/serverpage/image-id/122566i27DF5E7B494B565B/image-size/large?v=v2&px=999 "2020-12-17_19h52_57.png")![2020-12-17_19h53_24.png](https://community.atlassian.com/t5/image/serverpage/image-id/122567iC448E8A270C6E7AC/image-size/large?v=v2&px=999 "2020-12-17_19h53_24.png")  

Thus, you get filtered data in your chart:  

![2020-12-17_20h02_36.png](https://community.atlassian.com/t5/image/serverpage/image-id/122568i78AF0A435E4EA775/image-size/large?v=v2&px=999 "2020-12-17_20h02_36.png")

Katerina  
Stiltsoft

comments: author: Vamshi Korde
body: ![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/122575iF2D6858D4D84577B/image-size/large?v=v2&px=999 "1.png")![2.png](https://community.atlassian.com/t5/image/serverpage/image-id/122576iF5F405C6E0488777/image-size/large?v=v2&px=999 "2.png")


author: Vamshi Korde
body: As you notice in the screenshots posted.

Pic 1-

I have chart from table macro - inside that I have table excerpt.

Pic2 -

I edited the table filter macro to sort by Period column but it didn't help anything on the chart.

Infact the table should be sorted by serial number for me (first column).


author: Katerina Rudkovskaya [Stiltsoft]
body: You need to wrap ++Table Excerpt Include++ with ++Table Filter++ and apply sorting for the 'Period' column.  

![2020-12-17_20h56_19.png](https://community.atlassian.com/t5/image/serverpage/image-id/122577iD429DACA551BFD95/image-size/large?v=v2&px=999 "2020-12-17_20h56_19.png")![2020-12-17_20h56_50.png](https://community.atlassian.com/t5/image/serverpage/image-id/122578i9B61461F2D1CA3C4/image-size/large?v=v2&px=999 "2020-12-17_20h56_50.png")  

Regarding your manually created table inside the Table Excerpt macro, you can also sort it with the help of Table Filter. Please choose the 'NO' column in its browser.  
Please note that it doesn't influence your chart.  

Katerina  
Stiltsoft


author: Vamshi Korde
body: Still no luck, when I save the page. The sorting is still incorrect.

![3.png](https://community.atlassian.com/t5/image/serverpage/image-id/122582iB6B71278DC91003E/image-size/large?v=v2&px=999 "3.png")![4.png](https://community.atlassian.com/t5/image/serverpage/image-id/122583iC713226DA6130CB4/image-size/large?v=v2&px=999 "4.png")


author: Katerina Rudkovskaya [Stiltsoft]
body: That's strange, please raise a support ticket (attach the screenshots and the Page Storage Format: Upper right corner of the page -\> ... -\> View Storage Format).  

Thanks!

Katerina  
Stiltsoft


Tags: confluence-server

server