aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactiontablemodel.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2018-12-15 22:49:26 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2023-06-23 02:06:54 +0000
commit099dbe4224e0e896604e7f6901d0fc302b0bd3a0 (patch)
tree0d1133461350886e399c6920ec0d3d63b757510e /src/qt/transactiontablemodel.cpp
parent2d182f77cd8100395cf47a721bd01dc8620c9718 (diff)
GUI: TransactionRecord: When time/index/etc match, sort send before receive
Diffstat (limited to 'src/qt/transactiontablemodel.cpp')
-rw-r--r--src/qt/transactiontablemodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp
index c551456bda..8ae0a3c3ab 100644
--- a/src/qt/transactiontablemodel.cpp
+++ b/src/qt/transactiontablemodel.cpp
@@ -16,6 +16,7 @@
#include <core_io.h>
#include <interfaces/handler.h>
+#include <tinyformat.h>
#include <uint256.h>
#include <algorithm>
@@ -557,7 +558,7 @@ QVariant TransactionTableModel::data(const QModelIndex &index, int role) const
case Status:
return QString::fromStdString(rec->status.sortKey);
case Date:
- return rec->time;
+ return QString::fromStdString(strprintf("%020s-%s", rec->time, rec->status.sortKey));
case Type:
return formatTxType(rec);
case Watchonly: