We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 134e00a commit 5706078Copy full SHA for 5706078
flagsmith-engine/evaluation/evaluationContext/mappers.ts
@@ -42,7 +42,7 @@ function mapEnvironmentModelToEvaluationContext(environment: EnvironmentModel):
42
const variants =
43
fs.multivariateFeatureStateValues.length > 0
44
? [...fs.multivariateFeatureStateValues]
45
- .sort((a, b) => (a.id ?? 0) - (b.id ?? 0))
+ .sort((a, b) => (a.id ?? a.mvFsValueUuid) - (b.id ?? b.mvFsValueUuid))
46
.map(mv => ({
47
value: mv.multivariateFeatureOption.value,
48
weight: mv.percentageAllocation
0 commit comments