feat: add sort_order to categories for controlling display order in the order wizard
This commit is contained in:
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user