From b336b65532dd366fb8db2cab4618f4ad277b4863 Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Sat, 7 Jun 2025 12:17:26 +0200 Subject: [PATCH] fix(transaction): fix sorting --- internal/service/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/transaction.go b/internal/service/transaction.go index b1a536d..cf63405 100644 --- a/internal/service/transaction.go +++ b/internal/service/transaction.go @@ -259,7 +259,7 @@ func (s TransactionImpl) GetAll(user *types.User, filter types.TransactionItemsF OR (? = "true" AND error IS NOT NULL) OR (? = "false" AND error IS NULL) ) - ORDER BY timestamp DESC`, + ORDER BY timestamp DESC, created_at DESC`, user.Id, filter.AccountId, filter.AccountId, filter.TreasureChestId, filter.TreasureChestId, -- 2.49.1