diff --git a/src/collector/facet_collector.rs b/src/collector/facet_collector.rs index 077da6b0f..108a5d1f3 100644 --- a/src/collector/facet_collector.rs +++ b/src/collector/facet_collector.rs @@ -37,7 +37,10 @@ impl<'a> PartialOrd> for Hit<'a> { impl<'a> Ord for Hit<'a> { fn cmp(&self, other: &Self) -> Ordering { - other.count.cmp(&self.count) + match other.count.cmp(&self.count) { + Ordering::Equal => self.facet.cmp(other.facet), + x => x, + } } }