forked from External/mage
* Table sorting - Fixed bug that caused wrong sorting of waiting tables to the bottom of the tables list.
This commit is contained in:
parent
a96df7d0a2
commit
07bfebcd7d
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue