We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fc2079 commit a47b360Copy full SHA for a47b360
1 file changed
superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/utilities.ts
@@ -249,10 +249,10 @@ function createHierarchicalComparator(
249
}
250
return (sumA > sumB ? 1 : -1) * orderBasis;
251
252
- if (depth + 1 < maxDepth && depth + 1 >= b.length) {
+ if (depth + 1 <= maxDepth && depth + 1 >= b.length) {
253
return topBasis;
254
255
- if (depth + 1 < maxDepth && depth + 1 >= a.length) {
+ if (depth + 1 <= maxDepth && depth + 1 >= a.length) {
256
return -topBasis;
257
258
0 commit comments