diff --git a/crates/bevy_asset/src/handle.rs b/crates/bevy_asset/src/handle.rs index d37eebca71..4921e97e44 100644 --- a/crates/bevy_asset/src/handle.rs +++ b/crates/bevy_asset/src/handle.rs @@ -279,7 +279,7 @@ impl Eq for Handle {} impl PartialOrd for Handle { fn partial_cmp(&self, other: &Self) -> Option { - Some(self.id.cmp(&other.id)) + Some(self.cmp(other)) } } diff --git a/crates/bevy_core/src/name.rs b/crates/bevy_core/src/name.rs index 32216cb280..bf60647f0f 100644 --- a/crates/bevy_core/src/name.rs +++ b/crates/bevy_core/src/name.rs @@ -177,7 +177,7 @@ impl Eq for Name {} impl PartialOrd for Name { fn partial_cmp(&self, other: &Self) -> Option { - self.name.partial_cmp(&other.name) + Some(self.cmp(other)) } }