feat: add sort_order to categories for controlling display order in the order wizard

This commit is contained in:
DanielS
2026-05-01 02:21:39 +02:00
parent 2888e6aeda
commit cb6668d614
5 changed files with 117 additions and 68 deletions

View File

@@ -20,7 +20,7 @@ export async function getCategories() {
const { data, error } = await supabase
.from('categories')
.select('*')
.order('name', { ascending: true })
.order('sort_order', { ascending: true })
if (error) throw error
return data as Category[]