[O] Sort by date

This commit is contained in:
Hykilpikonna
2019-11-06 17:17:02 -05:00
parent 750c768848
commit 48287cdc4b
+3
View File
@@ -178,6 +178,9 @@ export default class App extends Vue
// Load assignments
// 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());
}
else throw new Error(response.data);
})