♻️ Remove useless sorting of substitutions

This commit is contained in:
2022-06-28 22:51:51 +02:00
parent 61679dc0c9
commit 75923bc25a

View File

@ -56,7 +56,7 @@ export const substitutionsForDate = computed(() => {
if (!dates[date]) dates[date] = [];
dates[substitution.date].push(substitution);
}
return sortObject(dates);
return dates;
});
export const parsedTimetable = computed(() => {
@ -159,12 +159,3 @@ export async function fetchHistory() {
}
fetchData();
function sortObject(obj) {
return Object.keys(obj)
.sort()
.reduce(function (result, key) {
result[key] = obj[key];
return result;
}, {});
}