You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 02:57:57 UTC
Re: [D] Under able to sort bar chart [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Under able to sort bar chart
<!-- Greeting -->
Hi @davidl33! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
This usually happens when the sorting configuration in the chart controls isn't correctly set or isn't being passed to the query generator, so Superset defaults to sorting by the dimension (Agent) alphabetically instead of by your metric (GWP). For bar charts, sorting by metric should work, but if the controls are missing, misconfigured, or there's a frontend/backend issue, you'll see alphabetical sorting instead. Double-check that the "Sort by" field in the chart controls is set to your metric (GWP) and the sort order is descending. If everything looks correct and it's still not working, it could be a limitation or bug in how sorting is mapped to the query for your chart type or dataset—this behavior is defined in the chart plugin and query utilities, and similar issues have been reported before ([source](https://github.com/apache/superset/issues/32412)).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=cbb3c8ba-1fe7-489d-a96f-72faad06edfc) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34863#discussioncomment-14228072
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org