From 63d5ba2224575d497d1cd08d8bab864b7e9df1b4 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Wed, 7 May 2025 14:12:21 +0200 Subject: [PATCH] Changed sort to toSorted --- stores/CalendarStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/CalendarStore.ts b/stores/CalendarStore.ts index 07160ac..b089086 100644 --- a/stores/CalendarStore.ts +++ b/stores/CalendarStore.ts @@ -97,7 +97,7 @@ export const useCalendar = defineStore("calendar", () => { /** * Sorted month data using the raw months */ - const sortedMonths = computed(() => months.value.sort((a, b) => a.position - b.position)) + const sortedMonths = computed(() => months.value.toSorted((a, b) => a.position - b.position)) const monthsPerYear = computed(() => months.value.length) const daysPerYear = computed(() => months.value.reduce((acc, o) => acc + o.days, 0))