:: Ord a => [a] -> [a] -package:ihaskell is:exact -package:data-ordlist -package:base package:heaps

O(n log n). Perform a heap sort