float_sort 0.1.0

Simple crate to sort f32 and f64 vectors safely using total_cmp
Documentation
  • Coverage
  • 20%
    1 out of 5 items documented1 out of 4 items with examples
  • Size
  • Source code size: 3.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • wdcs-zaifmirza/float_sort
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • wdcs-zaifmirza

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 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:

[dependencies]
float_sort = "0.1.0"