fix(table): ensure dimensions appear before metrics in column order (#39346)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
(cherry picked from commit 4f19bc4c5f)
This commit is contained in:
Maxime Beauchemin
2026-04-20 17:44:26 -07:00
committed by Michael S. Molina
parent 78d2fcbf49
commit ffc242b5df

View File

@@ -431,6 +431,11 @@ const processColumns = memoizeOne(function processColumns(
formatter,
config,
};
})
.sort((a, b) => {
const aIsMetric = a.isMetric || a.isPercentMetric ? 1 : 0;
const bIsMetric = b.isMetric || b.isPercentMetric ? 1 : 0;
return aIsMetric - bIsMetric;
});
return [metrics, percentMetrics, columns] as [
typeof metrics,