:: Ord a => [a] -> [a] -package:Cabal -package:fgl -is:exact -package:ihaskell is:exact package:heaps

O(n log n). Perform a heap sort