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>
pull/1817/head
Sofanyas Genene 6 months ago committed by GitHub
parent b7f06ad5f5
commit dcda192c79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save