Skip to content

Commit

Permalink
Merge pull request apache#108 from john-bodley/john-bodley-cherry-pic…
Browse files Browse the repository at this point in the history
…k-5709

fix: Pivot table not sorting formatted numeric column properly (apache#5709)
  • Loading branch information
john-bodley committed Sep 13, 2018
2 parents 9bb4086 + d4c5402 commit 20a6db9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset/assets/src/visualizations/pivot_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function PivotTable(element, props) {
const tdText = $(this)[0].textContent;
if (!Number.isNaN(tdText) && tdText !== '') {
$(this)[0].textContent = d3format(format, tdText);
$(this).attr('data-sort', tdText);
}
});
});
Expand Down

0 comments on commit 20a6db9

Please sign in to comment.