From 10348af88a41a90464817bcdbb1e9f182bddf1be Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Sun, 6 Nov 2016 17:15:55 +0300 Subject: [PATCH] History: sorting by blockheight instead of timestamp --- pages/History.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/History.qml b/pages/History.qml index 3d96d1af..e31473ae 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -75,10 +75,10 @@ Rectangle { /* Default sorting by timestamp desc */ /* Sort indicator on table header */ /* index of 'sort by blockheight' column */ - header.activeSortColumn = 1 + header.activeSortColumn = 2 /* Sorting model */ - model.sortRole = TransactionHistoryModel.TransactionTimeStampRole + model.sortRole = TransactionHistoryModel.TransactionBlockHeightRole model.sort(0, Qt.DescendingOrder); d.initialized = true // TODO: public interface for 'Header' item that will cause 'sortRequest' signal