diff --git a/components/calendar/category/Table.vue b/components/calendar/category/Table.vue index 7169384..f048008 100644 --- a/components/calendar/category/Table.vue +++ b/components/calendar/category/Table.vue @@ -2,9 +2,13 @@ import type { Category } from "~/models/Category"; import { ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb } from "radix-vue" -defineProps<{ +const { categories } = defineProps<{ categories: Category[] }>() + +const sortedCategories = computed(() => { + return categories.toSorted((a, b) => a.name.localeCompare(b.name)) +})