Created attachment 367871 [details] Screenshot showing incorect sort order In Generic import transaction matcher it is possible to click on the "Date" header and have the transactions sorted by date. The sort order is not correct. See the attache screenshot. As you can see, it looks like an increasing order (11/09, 11/13, 11/14), but the 1/31/18 transactions are at the top for some reason.
This Bug is also present in Version 3.1. If the Date Format is set to Day.Month.Year as common in Germany the transactions will be sorted mainly by day, so the example result might be something like this: 1.8.18 1.9.18 2.8.18 2.9.18 ...
Created attachment 372982 [details] wrong date order in dd.mm.yyyy format wrong sort order in Version 3.1. with Date Format dd.mm.yyyy under Windows 7 Language German
*** Bug 674255 has been marked as a duplicate of this bug. ***
Citation from Bug 674255 "When you import an OFX, in the window that list the operations, if you click on the "date" column in order to sort by date, the sort seems to be done one the string representation of the dates, which is wrong unless the date format happens to be YYYY/MM/DD."
*** Bug 788966 has been marked as a duplicate of this bug. ***
*** Bug 796817 has been marked as a duplicate of this bug. ***
similar behavior when sorting the accounts list by last reconciled date see bug 788332 common cause due to same function or just same logical error? Bug persists in 3.2.
Created attachment 372984 [details] Incorrect sort in CSV Import Window Screenshot showing that sort bug is also present in CSV Import Window in Version 3.2
I have a possible fix locally, will add to a PR in due course.
Added possible fix to PR432.
The fix was accepted and will be included in GnuCash 3.4. Thanks!