feat: sort distractors by text length (#1462)

This commit is contained in:
ggurdin 2025-01-15 14:34:28 -05:00 committed by GitHub
parent d8f484871e
commit 8852a2e41f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -188,6 +188,7 @@ class MultipleChoiceActivityState extends State<MultipleChoiceActivity> {
),
);
}
choices.sort((a, b) => a.text.length.compareTo(b.text.length));
return choices;
}