List transactions newest first on both chains

This commit is contained in:
2026-09-24 21:14:55 +08:00
parent 51dc007107
commit 2728bf161e
4 changed files with 77 additions and 10 deletions
+2 -1
View File
@@ -92,7 +92,8 @@ final class XRPWalletService {
ledgerIndex: (entry["ledger_index"] as? NSNumber)?.uint64Value,
sequence: (tx["Sequence"] as? NSNumber)?.uint64Value))
}
return records
// Newest first, matching the Monero list.
return records.sorted { ($0.timestamp ?? .distantFuture) > ($1.timestamp ?? .distantFuture) }
}
// MARK: - Sends