:: Ord a => [a] -> [a] -package:ghc-lib-parser -package:protolude package:heaps -is:exact

O(n log n). Perform a heap sort