Skip to content

Commit

Permalink
history: fix csv export sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Mar 1, 2024
1 parent 2c6c08d commit dd53dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libwalletqt/TransactionHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit dd53dfa

Please sign in to comment.