packages feed

natural-sort 0.1 → 0.1.1

raw patch · 1 files changed

+3/−3 lines, 1 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Algorithms.NaturalSort: compare :: (NaturalSort a) => a -> a -> Ordering
+ Algorithms.NaturalSort: compare :: NaturalSort a => a -> a -> Ordering
- Algorithms.NaturalSort: sortKey :: (NaturalSort a) => a -> SortKey
+ Algorithms.NaturalSort: sortKey :: NaturalSort a => a -> SortKey
- Algorithms.NaturalSort: sortKeyCollated :: (NaturalSort a) => (Text -> ByteString) -> a -> SortKey
+ Algorithms.NaturalSort: sortKeyCollated :: NaturalSort a => (Text -> ByteString) -> a -> SortKey

Files

natural-sort.cabal view
@@ -1,11 +1,11 @@ name: natural-sort-version: 0.1+version: 0.1.1 synopsis: User-friendly text collation description:   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.+  \"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.