Hacker News new | ask | show | jobs
by Arnavion 2242 days ago
You can use the ordered_float crate. It has a newtype that cannot hold NaNs and thus impls Ord.