The natural-sort package
The built-in comparisons for textual data are based on Unicode ordinals. This does not match most every-day sorting algorithms. For example, "z10.txt" is sorted after "z2.txt" by users, but before it by naïve algorithms.
This package provides an implementation of "natural sort", which more closely matches user expectations.
See also: http://www.davekoelle.com/alphanum.html
Properties
| Versions | 0.1, 0.1.1 |
|---|---|
| Dependencies | base (≥2 & <5), bytestring, parsec (≥3), text |
| License | BSD3 |
| Copyright | 2010 John Millikin <jmillikin@gmail.com> |
| Author | John Millikin <jmillikin@gmail.com> |
| Maintainer | John Millikin <jmillikin@gmail.com> |
| Category | Algorithms |
| Upload date | Wed Jan 20 19:14:38 UTC 2010 |
| Uploaded by | JohnMillikin |
| Built on | ghc-6.12, ghc-7.0 |
Modules
- Algorithms
Downloads
- natural-sort-0.1.1.tar.gz (Cabal source package)
- package description (included in the package)