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

O(n log n). Perform a heap sort