[F] Sort assignments by time

This commit is contained in:
Hykilpikonna
2019-12-07 14:27:41 -05:00
parent 0487e72c1f
commit 5098b696e3
+2 -1
View File
@@ -196,7 +196,8 @@ export default class Course
{
return this.gradingPeriods
.flatMap(term => this.termAssignments[term])
.filter(a => a.graded);
.filter(a => a.graded)
.sort((a, b) => b.time - a.time);
}
/**