[O] Change assignment.date to time

This commit is contained in:
Hykilpikonna
2019-11-09 16:50:48 -05:00
parent a05a44aaef
commit 6c600f31f8
+2 -2
View File
@@ -14,7 +14,7 @@ export interface Assignment
type: string type: string
typeId: number typeId: number
description: string description: string
date: Date time: number
complete: string complete: string
include: boolean include: boolean
display: boolean display: boolean
@@ -101,7 +101,7 @@ export default class Course
this.rawAssignments = JsonUtils.filterAssignments(data); this.rawAssignments = JsonUtils.filterAssignments(data);
// Sort by date (Latest is at 0) // Sort by date (Latest is at 0)
this.rawAssignments.sort((a, b) => b.date.getTime() - a.date.getTime()); this.rawAssignments.sort((a, b) => b.time - a.time);
// Filter assignments into terms // Filter assignments into terms
let termAssignments: Assignment[][] = [[], [], [], []]; let termAssignments: Assignment[][] = [[], [], [], []];