Sort Order for tasks #110
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue