Make minmax consistent with max behaviour
@@ -461,7 +461,7 @@ impl<I, K, V> GroupingMap<I>
Some(MinMaxResult::MinMax(min, max)) => {
if compare(key, &val, &min) == Ordering::Less {
MinMaxResult::MinMax(val, max)
- } else if compare(key, &val, &max) == Ordering::Greater {
+ } else if compare(key, &val, &max) != Ordering::Less {
MinMaxResult::MinMax(min, val)
} else {
MinMaxResult::MinMax(min, max)
