c207214f0b
I introduced a bug in the chart sorting in this PR: https://github.com/twentyhq/twenty/pull/16794 This PR fixes this. The sorting on the first axis is already done by the group by for FIELD_ASC and FIELD_DESC. It is sorted also for the second axis but in each group. For instance, if I create a graph that displays the amount of sales on each day of the week grouped by vendor I can have for: Monday: Vendor B, Vendor C Tuesday: Vendor A, Vendor B Wednesday: Vendor A, Vendor C ... Inside each day the order of the vendor is correct, but by looking at only one day, I can't know the order of all the vendors. That is why we always need to sort the second axis.