# Compare structs for partial ordering (sorting) - PartialOrd

* PartialOrd

* [PartialOrd](https://doc.rust-lang.org/std/cmp/trait.PartialOrd.html)
* Neither the `Eq` nor the `Ord` traits are implemented for floats.

{% embed include file="src/examples/struct/compare-structs-for-partial-ordering/src/main.rs" %}
{% embed include file="src/examples/struct/compare-structs-for-partial-ordering/out.out" %}


