mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
add sort datetime desc when showing ingredient suggestion
This commit is contained in:
@@ -261,6 +261,7 @@ class NutritionalPlan {
|
||||
out.add(log);
|
||||
}
|
||||
}
|
||||
out.sort((a, b) => b.datetime.compareTo(a.datetime));
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user