Compare strings in a human-natural way.
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
Natcmp is a library for comparing strings and paths in a way more familiar to humans.
For a list of strings like [a, 100, 10, b, 2], sorting ASCIIbetically would produce the unexpected ordering of [10, 100, 2, a, b]. A human would expect an ordering more like [2, 10, 100, a, b]. This library provides the means to sort and compare strings in such a fashion.
- Registered by Cameron Ross
- 1.3.3 released 4 months ago
- Copyright © 2014, Cameron