FINAL WITHOUT CLEAN
This commit is contained in:
@ -24,9 +24,9 @@
|
||||
}
|
||||
|
||||
export function sortByDate(a, b) {
|
||||
const nameA = a.lessonStart; // ignore upper and lowercase
|
||||
const nameB = b.lessonStart; // ignore upper and lowercase
|
||||
|
||||
const nameA = new Date(a.lessonStart); // ignore upper and lowercase
|
||||
const nameB = new Date(b.lessonStart); // ignore upper and lowercase
|
||||
|
||||
if (nameA < nameB) {
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user