1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-10 17:00:08 -09:00

* Fixed a bug in table view sort.

This commit is contained in:
LevelX2 2014-11-02 17:07:21 +01:00
parent 3645aa6488
commit 65c9ca845e

View file

@ -228,6 +228,10 @@ class TableListSorter implements Comparator<Table> {
if (one.getState().compareTo(two.getState()) != 0 ) {
return one.getState().compareTo(two.getState());
}
} else if (!two.getState().equals(TableState.SIDEBOARDING) && !two.getState().equals(TableState.DUELING)) {
if (one.getState().compareTo(two.getState()) != 0 ) {
return one.getState().compareTo(two.getState());
}
}
if (two.getEndTime() != null) {
if (one.getEndTime() == null) {