diff --git a/packages/app/src/domain/variants/static-props/get-variant-chart-data.ts b/packages/app/src/domain/variants/static-props/get-variant-chart-data.ts index 1cfcc15339..d12e394e12 100644 --- a/packages/app/src/domain/variants/static-props/get-variant-chart-data.ts +++ b/packages/app/src/domain/variants/static-props/get-variant-chart-data.ts @@ -26,7 +26,7 @@ export function getVariantChartData(variants: NlVariants | undefined) { return EMPTY_VALUES; } - const firstOccurences = variants.values.reduce>( + const firstOccurences = variants.values.sort().reverse().reduce>( (acc, x) => Object.assign(acc, { [x.name]: x.values.find((value) => value.percentage > 0)