Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

fix: Pivot table not sorting formatted numeric column properly (#5709) #108

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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