diff --git a/superset/viz.py b/superset/viz.py index 6f17ad71a79b9..fc874301619c3 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1149,7 +1149,7 @@ def get_data(self, df): if self._extra_chart_data: chart_data += self._extra_chart_data - chart_data = sorted(chart_data, key=lambda x: x['key']) + chart_data = sorted(chart_data, key=lambda x: tuple(x['key'])) return chart_data