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

O(n log n). Perform a heap sort