sortBy package:mono-traversable

Sort a sequence using an supplied element ordering function.
> let compare' x y = case compare x y of LT -> GT; EQ -> EQ; GT -> LT
> sortBy compare' [5,3,6,1,2,4]
[6,5,4,3,2,1]
Use Data.List's implementation of sortBy.
Sort a vector using an supplied element ordering function.