| Crates.io | numeric-sort |
| lib.rs | numeric-sort |
| version | 0.1.5 |
| created_at | 2022-07-08 08:14:47.830742+00 |
| updated_at | 2025-05-11 15:07:32.16882+00 |
| description | A zero-allocation, human-readable sorting library. |
| homepage | |
| repository | https://github.com/dragazo/numeric-sort |
| max_upload_size | |
| id | 621679 |
| size | 39,580 |
numeric-sortA 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-stdnumeric-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 }