avlunen / adivelog

Customized version of JDivelog
GNU General Public License v3.0
0 stars 0 forks source link

Auto-sort list of dives #1

Open avlunen opened 2 years ago

avlunen commented 2 years ago

It seems that the list of dives in the logbook is in ascending order by default, but the app will remember the order selected last. When adding a new dive, however, it seems to revert to the default ascending order. This needs to be made consistent, i.e. after adding a dive and refreshing the list of dives, whatever sort order was chosen before adding the dive needs to be used.

avlunen commented 2 years ago

This seems to be hard-wired in TableSorter.java; I have updated it to be descending by default, which seems to have done the trick, but it needs more testing.

avlunen commented 2 years ago

This is quite weird. It seems to work almost at random. In the debugger in Eclipse, it always seems to work. But running it from the command line, it doesn't. This will need some digging.