Skip to content

Commit

Permalink
Fix bug with sorting columns in group by using time shift (apache#4683)
Browse files Browse the repository at this point in the history
  • Loading branch information
michellethomas committed May 23, 2018
1 parent 4ed4197 commit 46335ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 46335ea

Please sign in to comment.