heapsort is such a cute sorting algorithm

exploiting the fact that you remove the largest element by sending it to a garbage section after the heap, rinse and repeat and you eventually have an array full of garbage. but it's Sorted Garbage :)