forked from firka/student-legacy
fix again
This commit is contained in:
parent
bc3f8cfff9
commit
a7ff9e7825
@ -148,7 +148,7 @@ class GradeProvider with ChangeNotifier {
|
||||
// streak magic
|
||||
int gradeStreak = 0;
|
||||
List<Grade> grs = _grades;
|
||||
grs.sort((a, b) => -a.date.compareTo(b.writeDate));
|
||||
grs.sort((a, b) => -a.writeDate.compareTo(b.writeDate));
|
||||
|
||||
for (Grade grade in grs) {
|
||||
if (grade.value.value == 5) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user