]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
history: fix csv export sort order
authortobtoht <tob@featherwallet.org>
Fri, 1 Mar 2024 20:41:24 +0000 (21:41 +0100)
committertobtoht <tob@featherwallet.org>
Fri, 1 Mar 2024 20:41:24 +0000 (21:41 +0100)
src/libwalletqt/TransactionHistory.cpp

index 1714c7251a2b1885c01cb66c8749638f69b9fa6b..37ee863e37d1cc318504ba59f03cdf248b581c62 100644 (file)
@@ -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();
     });