After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 120199 - Incorrect sort order in "Sort by Statement Date"
Incorrect sort order in "Sort by Statement Date"
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Register
git-master
Other Linux
: Normal minor
: ---
Assigned To: gnucash-ui-maint
gnucash-ui-maint
Depends on:
Blocks:
 
 
Reported: 2003-08-19 01:49 UTC by albro
Modified: 2018-06-29 20:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A one-liner to remove the statement about reconciled entries last (not valid, not used) (1.31 KB, patch)
2014-06-28 18:03 UTC, Michalis
none Details | Review

Description albro 2003-08-19 01:49:34 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.
Comment 1 Chris Shoemaker 2006-03-17 15:32:22 UTC
I don't know when this was fixed, but this works correctly in 1.9.2.
Comment 2 David Hampton 2006-03-17 16:18:41 UTC
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.
Comment 3 Chris Shoemaker 2006-03-18 00:21:39 UTC
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.
Comment 4 Michalis 2014-06-28 18:03:32 UTC
Created attachment 279503 [details] [review]
A one-liner to remove the statement about reconciled entries last (not valid, not used)
Comment 5 Geert Janssens 2014-08-02 10:07:38 UTC
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.
Comment 6 John Ralls 2018-06-29 20:36:10 UTC
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.