Sort Order for tasks #110

Merged
konrad merged 62 commits from feature/sort-order into master 2019-12-07 14:30:52 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 44273c1b86 - Show all commits

View File

@ -145,9 +145,9 @@ func mustMakeComparator(fieldName string) taskComparator {
case reflect.Bool:
return func(lhs, rhs *Task) int64 {
boolLHS, boolRHS := extractProp(lhs).(bool), extractProp(rhs).(bool)
if boolLHS && !boolRHS {
if !boolLHS && boolRHS {
return 1
} else if !boolLHS && boolRHS {
} else if boolLHS && !boolRHS {
return -1
}
return 0