How to modify the order of the Pivot Table
Make sure these boxes are checked before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included it here as text if any
- [x] 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
Superset version
0.27.0
Expected results


I use the Pivot Table to show the data.My sql is sorted correctly, but the Pivot Table sorting is different from sql.why?
this should be fixed in master https://github.com/apache/incubator-superset/pull/5566/commits/527e398b32546ccd20ebc02b466b76f36a411fbc
I tried to use 0.28.0 and 0.28.1, but this problem still exists in the new version
interesting, https://github.com/apache/incubator-superset/blob/48b7ebea1346820ec68e8c8ae8b3d70c81fc5281/superset/viz.py#L99 this should have fixed. check if Pivot Table is inherit from class BaseViz and use this process_metrics function to generate the metrics order.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@yamyamyuo This issue is in the latest version of superset as well. Not sure where to call this function in pivot table viz function. Can you please tell me that? I have checked that base viz has the process_metric function and pivot table is inheriting it.
I'm having the same issue with the latest version (1.3.2), with a Pivot Table v2.
The SQL query says ORDER BY "SUM(nb_appels)" ASC but in the pivot table it seems to be order alphabetically based on Rows.