history: fix csv export sort order

This commit is contained in:
tobtoht 2024-03-01 21:41:24 +01:00
parent 2c6c08df92
commit dd53dfac6e
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -344,7 +344,7 @@ bool TransactionHistory::writeCSV(const QString &path) {
auto transactions = m_rows; 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(); return info1->blockHeight() < info2->blockHeight();
}); });