# 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>` or `Vec<f32>` directly with a single method.
- Uses [`total_cmp`](https://doc.rust-lang.org/std/primitive.f64.html#method.total_cmp) internally 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`:
```toml
[dependencies]
float_sort = "0.1.0"