Registry / utility / natord

natord

JSON →
library1.0.9rscratesunverified

Natural ordering for Rust, sorting strings with embedded numbers correctly.

# Cargo.toml [dependencies] natord = "1.0.9"
INSTALL
IMPORT
SIG · NATORD
N
natord
utilityrustv1.0.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compare
✓ use natord::compare;

Sort strings using natural ordering.

use natord::compare; fn main() { let mut items = vec!["item2", "item10", "item1"]; items.sort_by(|a, b| compare(a, b)); println!("{:?}", items); // ["item1", "item2", "item10"] }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
natord — cargo add natord · libregistry