Sorted meaning choices practice_match.dart (#2571)
* Sorted meaning choices practice_match.dart * generated * sorted choiceArray before mapping * generated * chore: remove print statement --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: ggurdin <ggurdin@gmail.com> Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
parent
b7f06ad5f5
commit
dcda192c79
1 changed files with 4 additions and 0 deletions
|
|
@ -66,6 +66,10 @@ class PracticeMatchActivity {
|
|||
'Added PracticeChoice Construct: ${ith.key}, Forms: ${ith.value}',
|
||||
);
|
||||
}
|
||||
|
||||
choices.sort(
|
||||
(a, b) => a.choiceContent.length.compareTo(b.choiceContent.length),
|
||||
);
|
||||
}
|
||||
|
||||
bool isCorrect(ConstructForm form, String value) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue