mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
fecdb930d4
commit
3939503377
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue