| Crates.io | float_sort |
| lib.rs | float_sort |
| version | 0.1.0 |
| created_at | 2025-08-26 12:12:17.744517+00 |
| updated_at | 2025-08-26 12:12:17.744517+00 |
| description | Simple crate to sort f32 and f64 vectors safely using total_cmp |
| homepage | |
| repository | https://github.com/wdcs-zaifmirza/float_sort |
| max_upload_size | |
| id | 1811081 |
| size | 3,520 |
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.
Vec<f64> or Vec<f32> directly with a single method.total_cmp internally for consistent ordering.Add this to your Cargo.toml:
[dependencies]
float_sort = "0.1.0"