From dd53dfac6ea89a532e7dd96c9e01f673799a00a3 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 1 Mar 2024 21:41:24 +0100 Subject: [PATCH] history: fix csv export sort order --- src/libwalletqt/TransactionHistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libwalletqt/TransactionHistory.cpp b/src/libwalletqt/TransactionHistory.cpp index 1714c72..37ee863 100644 --- a/src/libwalletqt/TransactionHistory.cpp +++ b/src/libwalletqt/TransactionHistory.cpp @@ -344,7 +344,7 @@ bool TransactionHistory::writeCSV(const QString &path) { auto transactions = m_rows; - std::sort(m_rows.begin(), m_rows.end(), [](const TransactionRow *info1, const TransactionRow *info2){ + std::sort(transactions.begin(), transactions.end(), [](const TransactionRow *info1, const TransactionRow *info2){ return info1->blockHeight() < info2->blockHeight(); });