[F] Fix sorting

This commit is contained in:
Hykilpikonna
2019-11-06 17:38:36 -05:00
parent 2867f8d09c
commit 53c82fd477
+2 -2
View File
@@ -185,8 +185,8 @@ export default class App extends Vue
// Parse json and filter it
course.assignments = JsonUtils.filterAssignments(response.data);
// Sort by date
course.assignments.sort((a, b) => a.date.getTime() - b.date.getTime());
// Sort by date (Latest is at 0)
course.assignments.sort((a, b) => b.date.getTime() - a.date.getTime());
// Filter assignments into terms
let termAssignments: Assignment[][] = [[], [], [], []];