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(); });