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

O(n log n). Perform a heap sort