Bug #453 - Priorities are sorted inconsistently (asc vs. desc)
- Patch to correct the sorting of priorities, which had a condition flipped making the Table::descendingPriority consider a missing priority to be 'higher' than 'H'.
This commit is contained in:
committed by
Paul Beckingham
parent
fecdb930d4
commit
3939503377
@@ -749,7 +749,7 @@ bool sort_compare (int left, int right)
|
||||
break;
|
||||
|
||||
case Table::descendingPriority:
|
||||
if (((std::string)*cell_left == "" && (std::string)*cell_right != "") ||
|
||||
if (((std::string)*cell_left != "" && (std::string)*cell_right == "") ||
|
||||
((std::string)*cell_left == "M" && (std::string)*cell_right == "L") ||
|
||||
((std::string)*cell_left == "H" && ((std::string)*cell_right == "L" || (std::string)*cell_right == "M")))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user