NaturalSort: Natural sorting for strings

[ bsd3, deprecated, text ] [ Propose Tags ]
Deprecated

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

E.g., "1" < "10", and "10 bottles of beer" < "100 bottles of beer".


[Skip to Readme]

Modules

[Index]

Flags

Automatic Flags
NameDescriptionDefault
base3

Use base version 3

Disabled
driver

Build driver program

Disabled
no-lib

Do not build the library (just the driver)

Disabled
test

Build test driver

Disabled
coverage

Build with code coverage

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.2.1
Dependencies base (>=3 && <5), bytestring (>=0.9 && <1), QuickCheck (>=2.1 && <3), strict (>=0.3 && <0.4) [details]
License BSD-3-Clause
Copyright (c) Joachim Fasting 2008-2010
Author
Maintainer Joachim Fasting <joachim.fasting@gmail.com>
Category Text
Home page http://github.com/joachifm/natsort
Source repo head: git clone git://github.com/joachifm/natsort.git
Uploaded by JoachimFasting at 2010-04-05T01:35:36Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables test, nsort
Downloads 1352 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for NaturalSort-0.2.1

[back to package description]

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".

Getting

  • git pull git://github.com/joachifm/natsort.git

Building

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
./dist/build/test/test

Development

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

Licence

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

Author(s)

Joachim Fasting <joachim.fasting@gmail.com>