diff --git a/src/graph.rs b/src/graph.rs index f0baa635..1c443223 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -570,16 +570,7 @@ impl, U: PartialEq + PartialOrd> Ord for TimeSe impl, U: PartialEq + PartialOrd> PartialOrd for TimeSeries { fn partial_cmp(&self, other: &Self) -> Option { - let self_total = self.total(); - let other_total = other.total(); - - if self_total > other_total { - Some(Ordering::Greater) - } else if self_total < other_total { - Some(Ordering::Less) - } else { - Some(Ordering::Equal) - } + Some(self.cmp(other)) } }