From b3616d23a4c7c22501a7f792461a958b12e23a13 Mon Sep 17 00:00:00 2001 From: Yongjie Zhao Date: Thu, 24 Jun 2021 09:38:25 +0100 Subject: [PATCH] fix: follow up pr-15343 (#15355) --- superset/viz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/viz.py b/superset/viz.py index b46c297bf..4aa19aed6 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1236,7 +1236,7 @@ class NVD3TimeSeriesViz(NVD3Viz): sort_by_label = utils.get_metric_name(sort_by) if sort_by_label not in utils.get_metric_names(d["metrics"]): d["metrics"].append(sort_by) - d["orderby"] = [(sort_by, not self.form_data.get("order_desc", is_asc))] + d["orderby"] = [(sort_by, is_asc)] return d def to_series(