In Rust you can't just sort() a Vec of floats. You need to do a sort_by with a custom lambda expression to handle the edge cases, because floats aren't _technically_ well ordered.
I give you Rust: the "well, actually" of programming languages
@phooky That's one of the major things that bother me about rust.
If you decide not to have floats sortable in your standard library because they technically not well ordered, while almost the entire rest of the universe has made up some order to work around the edge cases, is ... inconvenient, but in the end it's your choice.
However not including some kind of ordered float lambda for sort_by that implements one of these orders is basically deciding to waste everybody else's time.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!