Natural sorting for strings

Latest on Hackage:0.2.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed
Maintained by Joachim Fasting

NaturalSort - natural sorting for strings

NaturalSort is a library for sorting strings "naturally", i.e. taking numerical values into account when comparing textual inputs.

For example, "1" < 10, and "10 bottles of beer" < "100 bottles of beer".


  • git pull git://


The preferred method of building is using cabal-install:

cd natsort
cabal install

A driver program is also available:

cabal install -f driver

To run the test suite, do:

cabal configure -f test


To contribute to the project, please create a fork of the repository.


NaturalSort is distributed under the terms of the BSD3 license (see COPYING)


Joachim Fasting \

Depends on 4 packages:
Used by 1 package:
comments powered byDisqus