[F] Sort assignments by time
This commit is contained in:
+2
-1
@@ -196,7 +196,8 @@ export default class Course
|
|||||||
{
|
{
|
||||||
return this.gradingPeriods
|
return this.gradingPeriods
|
||||||
.flatMap(term => this.termAssignments[term])
|
.flatMap(term => this.termAssignments[term])
|
||||||
.filter(a => a.graded);
|
.filter(a => a.graded)
|
||||||
|
.sort((a, b) => b.time - a.time);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user