From 71c6bfb3a6ba28e723ac99a03893d0fa7e46c8be Mon Sep 17 00:00:00 2001 From: Arpit Date: Thu, 13 Sep 2018 03:37:44 +0530 Subject: [PATCH] fix: Pivot table not sorting formatted numeric column properly (#5709) * fix: Pivot table not sorting formatted numeric column properly * refactor(lint): fixed lint error (cherry picked from commit 4121d57d32e2b786632e9e4cd582a2a3f1e65a53) --- superset/assets/src/visualizations/pivot_table.js | 1 + 1 file changed, 1 insertion(+) diff --git a/superset/assets/src/visualizations/pivot_table.js b/superset/assets/src/visualizations/pivot_table.js index fded4616b350a..1fcbb291813a1 100644 --- a/superset/assets/src/visualizations/pivot_table.js +++ b/superset/assets/src/visualizations/pivot_table.js @@ -35,6 +35,7 @@ module.exports = function (slice, payload) { const tdText = $(this)[0].textContent; if (!isNaN(tdText) && tdText !== '') { $(this)[0].textContent = d3format(format, tdText); + $(this).attr('data-sort', tdText); } }); });