From 91611fff353ce3411351735f39f9de2da63f19f4 Mon Sep 17 00:00:00 2001 From: Atakan Yavuzarslan Date: Sat, 4 Jul 2026 20:53:32 +0300 Subject: [PATCH] fix: sort transaction history by numeric amount, not formatted text The Amount column sorted on amount_formatted, a text column, so rows ordered lexicographically ('100' < '20' < '3'). Sort on the numeric amount column instead and keep amount_formatted for display only. The amount column already exists in the schema; no migration needed. --- components/transactions/TransactionHistory.tsx | 2 +- lib/supabase/transactions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/transactions/TransactionHistory.tsx b/components/transactions/TransactionHistory.tsx index 24fb58a..79b4c6f 100644 --- a/components/transactions/TransactionHistory.tsx +++ b/components/transactions/TransactionHistory.tsx @@ -189,7 +189,7 @@ export function TransactionHistory({ wallet }: TransactionHistoryProps) { Token