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:
Johannes Schlatow 2010-07-31 09:03:01 -04:00 committed by Paul Beckingham
parent fecdb930d4
commit 3939503377

View file

@ -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;