diff --git a/jid/src/lib.rs b/jid/src/lib.rs index 16078e1f..770044cf 100644 --- a/jid/src/lib.rs +++ b/jid/src/lib.rs @@ -105,7 +105,7 @@ impl PartialEq for Jid { impl PartialOrd for Jid { fn partial_cmp(&self, other: &Jid) -> Option { - self.normalized.partial_cmp(&other.normalized) + Some(self.cmp(other)) } }