natural-sort: User-friendly text collation

[ algorithms, bsd3, library ] [ Propose Tags ]
Versions 0.1, 0.1.1, 0.1.2
Dependencies base (>=2 && <5), bytestring, parsec (>=3), text [details]
License BSD-3-Clause
Copyright 2010 John Millikin <>
Author John Millikin <>
Maintainer John Millikin <>
Category Algorithms
Uploaded by JohnMillikin at Tue Jan 19 05:13:56 UTC 2010
Distributions LTSHaskell:0.1.2, NixOS:0.1.2, openSUSE:0.1.2
Downloads 2149 total (27 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

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:




Maintainer's Corner

For package maintainers and hackage trustees