From dcda192c79ed1491c8f1592076bc4adffc8a4341 Mon Sep 17 00:00:00 2001 From: Sofanyas Genene <123987957+Sofanyas@users.noreply.github.com> Date: Tue, 29 Apr 2025 14:35:49 -0400 Subject: [PATCH] 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 Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> --- lib/pangea/practice_activities/practice_match.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pangea/practice_activities/practice_match.dart b/lib/pangea/practice_activities/practice_match.dart index d614dabf9..6f94bf7b8 100644 --- a/lib/pangea/practice_activities/practice_match.dart +++ b/lib/pangea/practice_activities/practice_match.dart @@ -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) {