FINAL WITHOUT CLEAN

This commit is contained in:
2024-04-20 19:30:01 +02:00
parent 0ffc8077db
commit be23c3ab91
10 changed files with 178 additions and 49 deletions

View File

@ -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;
}