numeric-sort 0.1.4

A zero-allocation, human-readable sorting library.
Documentation
  • Coverage
  • 90%
    18 out of 20 items documented2 out of 17 items with examples
  • Size
  • Source code size: 36.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.11 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • dragazo/numeric-sort
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dragazo

numeric-sort

A zero-allocation, human-readable sorting library.

This library provides convenient ways to compare or sort strings and keep numeric components in proper numerical order. For instance "test-7" will come before "test-10", contrary to traditional lexicographic comparison of characters.

The primary functions of interest are [cmp], [sort], and [sort_unstable].

no-std

numeric-sort is compatible with no-std projects out of the box.

However, by default we link to alloc in order to support [sort] (stable sorts require allocations). To prevent this, you can disable the default alloc feature, which will disable [sort] but leave all other functions still available.

[dependencies]
numeric-sort = { version = "...", default-features = false }