-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column sort order not properly stored #7524
Comments
Debugged a bit more, it's odd: Sometimes the mainTable.getSortOrder() returns an empty list. jabref/src/main/java/org/jabref/gui/maintable/PersistenceVisualStateTable.java Lines 36 to 41 in c8f7be8
@calixtus I remember that you worked on this. Any idea? |
I took a quick look into it. I honestly have no idea why. mainTable.getSortOrder refs directly to the javafx-implementation of a TableView. |
Hi, i'm a software engineering student and I'm really looking forward to solve this issue if possible. It will be really appreciated to get some guidance or help since i'm new to the project. Thanks! |
@Siedlerchr i can propose the idea of adding a change listener to the mainTable.getSortOrder that will basically detect whenever there's a change in the sorting order we want ASC or DESC and in a case of DESC order the event will be handled. If it's a good solution i can manage to solve it directly. Thanks in advance ! |
Thanks for your interest, but the underlying problem is a bit more complicated and we already have listeners in place if you look closely in the PersistenceVisualStateTable The question is rather: Why is the getSortOrder list sometimes empty and sometimes not when a listener is triggered? |
Hello @Mehdi-Ayadi nice to hear, that you took interest in JabRef. |
@Siedlerchr @calixtus thank you for your fast replies and for the clarifications ! it's really appreciated. I will take a look a bit more into the details and do my best to come up with a solution. |
Idea for debugging: Split each listener to call a separate method so it's easier to see what listener is when called |
There is somehow a bug in storeColumnPreferences
Even when I change the sort oder of one column
From debugging I noticed it's always empty and this is the root issue why the export does not take into account the current table order
jabref/src/main/java/org/jabref/preferences/JabRefPreferences.java
Lines 1932 to 1935 in 2c7715c
The text was updated successfully, but these errors were encountered: