sorting-1.0.0: Utils for sorting.

Copyright© Hardy Jones, 2015
LicenseBSD3
Maintainerjones3.hardy@gmail.com
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Ord.Sorting

Description

Just a couple of helpers for sorting.

Synopsis

Documentation

ascending :: Ord b => (a -> b) -> a -> a -> Ordering Source

Sort by a function in ascending order.

It is ascending based on the Ord instance.

descending :: Ord b => (a -> b) -> a -> a -> Ordering Source

Sort by a function in descending order.

It is descending based on the Ord instance.