float_sort
A lightweight Rust crate that provides easy and safe sorting for floating-point numbers (f64 and f32).
No more partial_cmp boilerplate, no more confusion with NaN handling — just simple sorting.
✨ Features
- Sort
Vec<f64>orVec<f32>directly with a single method. - Uses
total_cmpinternally for consistent ordering. - Avoids panics and weird behavior with floating-point edge cases.
- Zero dependencies, minimal and fast.
📦 Installation
Add this to your Cargo.toml:
[]
= "0.1.0"