-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Utils for sorting. -- @package sorting @version 1.0.0 -- | Just a couple of helpers for sorting. module Data.Ord.Sorting -- | Sort by a function in ascending order. -- -- It is ascending based on the Ord instance. ascending :: Ord b => (a -> b) -> a -> a -> Ordering -- | Sort by a function in descending order. -- -- It is descending based on the Ord instance. descending :: Ord b => (a -> b) -> a -> a -> Ordering