* Table sorting - Fixed bug that caused wrong sorting of waiting tables to the bottom of the tables list.

This commit is contained in:
LevelX2 2014-04-25 15:58:20 +02:00
parent a96df7d0a2
commit 07bfebcd7d

View file

@ -214,7 +214,7 @@ class TableListSorter implements Comparator<Table> {
}
// priority 2 - Not finished yet -> Sorted by time started
if (two.getState().equals(TableState.STARTING) || two.getState().equals(TableState.WAITING)) {
return -1;
return 1; // two has higher priority
} else if (one.getEndTime() == null) {
if (two.getEndTime() == null) {
return two.getStartTime().compareTo(one.getStartTime());