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))