diff --git a/src/main/java/org/qortal/crosschain/Bitcoiny.java b/src/main/java/org/qortal/crosschain/Bitcoiny.java index 1201b363..c3fecb4d 100644 --- a/src/main/java/org/qortal/crosschain/Bitcoiny.java +++ b/src/main/java/org/qortal/crosschain/Bitcoiny.java @@ -377,7 +377,9 @@ public abstract class Bitcoiny implements ForeignBlockchain { // Process new keys } while (true); - return walletTransactions.stream().collect(Collectors.toList()); + Comparator newestTimestampFirstComparator = Comparator.comparingInt((BitcoinyTransaction txn) -> txn.timestamp).reversed(); + + return walletTransactions.stream().sorted(newestTimestampFirstComparator).collect(Collectors.toList()); } /**