Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 19:11:17 +00:00
co-authored by renee-png
parent eb3df7be14
commit 4aac55853c
+1
View File
@@ -56,6 +56,7 @@ function InvoicesIndex() {
let query = supabase
.from("invoices")
.select("*, client:clients(id, name), case:cases(id, case_number, title)", { count: "exact" })
.order("issue_date", { ascending: false, nullsFirst: false })
.order("created_at", { ascending: false });
if (status !== "all") query = query.eq("status", status as any);