G0m3e opened a new issue, #20198: URL: https://github.com/apache/superset/issues/20198
A clear and concise description of what the bug is. #### How to reproduce the bug 1. Dataset SQL as below `SELECT 'Total' AS `TYPE`, 111 AS `T_NUM` UNION ALL SELECT 'Average of Go-live', 10 UNION ALL SELECT 'Average of Project', 200` 2. Make a new Bar Chart v2 and select TYPE as X-AXIS, 3. "SORT BY" with custom sql below `FIELD(TYPE, 'Total', 'Average of Project', 'Average of Go-live')` 4. See error ### Expected results x-axis shows in order of 'Total', 'Average of Project', 'Average of Go-live' ### Actual results x-axis always shows in order of 'Average of Go-live', 'Average of Project', 'Total' no matter SORT BY is enabled or not PS: the same SORT BY sql works with "Bar Chart" #### Screenshots  ### Environment (please complete the following information): - browser type and version: Edge 101.0.1210.53 - superset version: 1.5.0 - python version: 3.8.9 - node.js version: v16.13.2 - any feature flags active: GENERIC_CHART_AXES ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [ ] I have reproduced the issue with at least the latest released version of superset. - [ ] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Add any other context about the problem here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
