GNOME Bugzilla – Bug 120199
Incorrect sort order in "Sort by Statement Date"
Last modified: 2018-06-29 20:36:10 UTC
In registers, if you choose the option "Sort by Statement Date", the tool tip claims that unreconciled transactions will appear last, which would certainly be helpful, but in fact the unreconciled transactions appear first.
I don't know when this was fixed, but this works correctly in 1.9.2.
Its still broken. When this option is chosen the register appears to sort alphabetically on the "reconciled" column, which puts the reconciled transactions last (in english). The tooltip says that the *un*reconciled transactions should be last. Since this sort is currently performed on a translated string, it the actual sort order will depend on the users language. The tooltip needs to be changed, or better yet a language independent sort that does put the unreconciled transactions last needs to be implemented. Note that in 1.9/2.0 you can filter by status and tell the register to show only the unreconciled transactions.
Oops. I confused 'reconciled' with 'cleared' The 'c' comes before 'n', but not 'y'. Since we can filter by reconciled status, maybe we should either change this option to just sort by reconcile date, and change the tooltip to not make any claim about the order of reconcile state. The alternative would be to make language-independent reconcile state code. I'm not sure it's worth it.
Created attachment 279503 [details] [review] A one-liner to remove the statement about reconciled entries last (not valid, not used)
Comment on attachment 279503 [details] [review] A one-liner to remove the statement about reconciled entries last (not valid, not used) Thank you for your patch. I altered it slightly before pushing it to the repository though. Selecting this sort option sorts by more than statement date so it seemed appropriate to inform the user of the exact sorting that will happen. The entries are first grouped by cleared/unreconciled/reconciled status (in that order) and then each group is ordered by statement date. I have added this to the tooltip. I do agree that it will be too much effort to alter the sort behaviour to show unreconciled items last.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=120199. Please update any external references or bookmarks.