From 8c4d48dd24d6a9b7acc4248b528950c6f388f5d2 Mon Sep 17 00:00:00 2001 From: nathanroberts55 Date: Sun, 15 Feb 2026 15:46:26 -0500 Subject: [PATCH] app: sort transactions by creation date in LatestTransactions component --- .../routes/creators/(_components)/LatestTransactions.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/TTX.Web/routes/creators/(_components)/LatestTransactions.tsx b/src/TTX.Web/routes/creators/(_components)/LatestTransactions.tsx index b04762fb..51015e2c 100644 --- a/src/TTX.Web/routes/creators/(_components)/LatestTransactions.tsx +++ b/src/TTX.Web/routes/creators/(_components)/LatestTransactions.tsx @@ -20,7 +20,10 @@ export default function LatestTransactions( {transactions.length > 0 && ( - {transactions.map((tx) => { + {[...transactions].sort((a, b) => + new Date(b.created_at).getTime() - + new Date(a.created_at).getTime() + ).map((tx) => { const href = `/players/${tx.player.slug}`; return (