Copyright | © Hardy Jones, 2015 |
---|---|
License | BSD3 |
Maintainer | jones3.hardy@gmail.com |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Just a couple of helpers for sorting.
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.