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

O(n log n). Perform a heap sort