GitHub user dosubot[bot] added a comment to 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).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/cbb3c8ba-1fe7-489d-a96f-72faad06edfc?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/cbb3c8ba-1fe7-489d-a96f-72faad06edfc?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/cbb3c8ba-1fe7-489d-a96f-72faad06edfc?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/cbb3c8ba-1fe7-489d-a96f-72faad06edfc?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/cbb3c8ba-1fe7-489d-a96f-72faad06edfc?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/cbb3c8ba-1fe7-489d-a96f-72faad06edfc?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/cbb3c8ba-1fe7-489d-a96f-72faad06edfc?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34863)

GitHub link: 
https://github.com/apache/superset/discussions/34863#discussioncomment-14228072

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to