# Advanced bar chart sort by data issue with categories

**URL:** <https://community.appfarm.io/t/advanced-bar-chart-sort-by-data-issue-with-categories/1002>\
**Category:** Ask the community\
**Created:** [January 24, 2024, 12:07pm UTC](https://community.appfarm.io/t/advanced-bar-chart-sort-by-data-issue-with-categories/1002 "2024-01-24T12:07:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![torstro](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@torstro](https://community.appfarm.io/u/torstro)\
**Post date:** [January 24, 2024, 12:07pm UTC](https://community.appfarm.io/t/advanced-bar-chart-sort-by-data-issue-with-categories/1002/1 "2024-01-24T12:07:56Z")

</div>

I am trying to sort a bar chart by data, but the category labels are not rearranging with the data so the display is wrong with the option selected.

Screenshot with sort by data unchecked, the amounts on each bar correspond to the category code on the left.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/d/da7f36b4eb217faf747a9517c9bdda59ac789fc2.png)

Screenshot with sort by data checked, the bars are rearranged but the category labels stay in the same place.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/7/78b0299252701f29c96bac0dd1ace3f7c5d4bc86.png)

---

<div class="post-metadata">

**Author:** ![isabelslorer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/isabelslorer/32/856_2.png) [@isabelslorer](https://community.appfarm.io/u/isabelslorer)\
**Post date:** [January 24, 2024, 2:49pm UTC](https://community.appfarm.io/t/advanced-bar-chart-sort-by-data-issue-with-categories/1002/2 "2024-01-24T14:49:16Z")

</div>

Hi!

Thank you for pointing this out. The error has been registered, and we will work to resolve it.
