:: Ord a => [a] -> [a] -package:classy-prelude package:heaps

O(n log n). Perform a heap sort