Heapsort

Heap-based O(n log n); typically not stable.