Qt: Sort transactions by date #8014

pull Tyler-Hardin wants to merge 1 commits into bitcoin:master from Tyler-Hardin:sort-by-date changing 2 files +2 −2
  1. Tyler-Hardin commented at 3:40 AM on May 6, 2016: contributor

    Conflicted transactions can get stuck at the top. This fixes that.

    I'm willing to add a setting to allow the user to pick a default sort if necessary.

    I got the idea for this from Theymos: https://www.reddit.com/r/Bitcoin/comments/4i396u/bitcoin_qt_feature_suggestions/d2uowpt

  2. luke-jr commented at 3:57 AM on May 6, 2016: member

    You should be able to just click the heading you want to sort by... maybe this makes sense as a default though.

  3. Tyler-Hardin commented at 3:59 AM on May 6, 2016: contributor

    Yeah, you can click to sort by column. The idea is that date makes a better default.

  4. jonasschnelli added the label GUI on May 6, 2016
  5. jonasschnelli commented at 8:11 AM on May 6, 2016: contributor

    Yes. This makes sense. utACK 650222badaf95b7a91ce0c8aa50623359fa03380

  6. paveljanik commented at 7:38 PM on May 9, 2016: contributor

    With this, we will have a different default sort order in the main window (Overview - Recent transactions) and in the Transactions tab. This is not very intuitive.

    Can you change the sort order there too?

  7. jonasschnelli commented at 7:42 PM on May 9, 2016: contributor

    With this, we will have a different default sort order in the main window (Overview - Recent transactions) and in the Transactions tab. This is not very intuitive.

    Good point. I agree with @paveljanik.

  8. Qt: Sort transactions by date
    Conflicted transactions can get stuck at the top. This fixes that.
    2d5603c7e8
  9. Tyler-Hardin force-pushed on May 10, 2016
  10. Tyler-Hardin commented at 2:48 AM on May 10, 2016: contributor

    @paveljanik, good catch! Thanks!

    And yeah, it was also trivial to change.

  11. fanquake commented at 6:02 AM on May 10, 2016: member

    utACK 2d5603c

  12. paveljanik commented at 7:41 AM on May 14, 2016: contributor

    Ready for merge.

  13. jonasschnelli commented at 1:00 PM on May 14, 2016: contributor

    On regtest this can result in a strange table ordering. If you generate a couple of blocks, mostly some (or all) of them are generated during the same second which makes them equal for the date sort order. My tests showed me, that I had transactions table entries (coinbase) with more confirmations on top of entries with fever confirmations.

    I hope this is a regtest only problem (I can't imagine a mainnet use case where this issue could play a role).

    Is there a possibility to use the amount of confirmations as second sort attribute (if the first sort attribute is equal)?

  14. MarcoFalke commented at 1:06 PM on May 14, 2016: member

    Conflicted transactions can get stuck at the top. This fixes that.

    Wouldn't it be better to give an option to wipe such transactions from the db (and thus gui) entirely?

  15. jonasschnelli commented at 1:19 PM on May 14, 2016: contributor

    You can use the new abandon function (context menu) #7707. But it will not remove the transaction. Removing is somehow against the bookkeeping rules. But I agree it could be useful sometimes.

    For this PR: I think it is useful. But confirmation count should be the 2nd sort attribute.

  16. Tyler-Hardin commented at 1:51 AM on May 16, 2016: contributor

    @jonasschnelli there's no builtin way to do that. I could add a method to do it, but I'm not sure how to expose the functionality API-wise.

    What do you think about having a sortSecondary(int col, Qt::SortOrder ord) method that is called on a TransactionFilterProxy that has already been sorted by the primary key. This is the simplest way to implement it that I can think of.

  17. jonasschnelli merged this on May 23, 2016
  18. jonasschnelli closed this on May 23, 2016

  19. jonasschnelli referenced this in commit 77b49acc85 on May 23, 2016
  20. jonasschnelli commented at 7:51 PM on May 23, 2016: contributor

    Tested ACK. Further improvements (second sort attribute) can be done later.

  21. codablock referenced this in commit 2ba8fd8e54 on Sep 16, 2017
  22. codablock referenced this in commit 2184b48833 on Sep 19, 2017
  23. codablock referenced this in commit 3f5be563f4 on Dec 21, 2017
  24. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me