From 3939503377f7f605c47b673ec99e0de179314053 Mon Sep 17 00:00:00 2001 From: Johannes Schlatow Date: Sat, 31 Jul 2010 09:03:01 -0400 Subject: [PATCH] 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'. --- src/Table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Table.cpp b/src/Table.cpp index 07337f05e..76197547a 100644 --- a/src/Table.cpp +++ b/src/Table.cpp @@ -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;