diff --git a/src/kits/tracker/WidgetAttributeText.cpp b/src/kits/tracker/WidgetAttributeText.cpp index 74c2b90aa8..bfa6993d72 100644 --- a/src/kits/tracker/WidgetAttributeText.cpp +++ b/src/kits/tracker/WidgetAttributeText.cpp @@ -1469,7 +1469,7 @@ GenericAttributeText::Compare(WidgetAttributeText &attr, BPoseView *) // Sort undefined values last, regardless of the other value: if (fValueIsDefined == false || compareTo->fValueIsDefined == false) { return fValueIsDefined < compareTo->fValueIsDefined ? - (fValueIsDefined == compareTo->fValueIsDefined ? 0 : -1) : 1; + 1 : (fValueIsDefined == compareTo->fValueIsDefined ? 0 : -1); } switch (fColumn->AttrType()) {