feat: sort distractors by text length (#1462)
This commit is contained in:
parent
d8f484871e
commit
8852a2e41f
1 changed files with 1 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ class MultipleChoiceActivityState extends State<MultipleChoiceActivity> {
|
|||
),
|
||||
);
|
||||
}
|
||||
choices.sort((a, b) => a.text.length.compareTo(b.text.length));
|
||||
return choices;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue