(Java) Heapsort - Implementation not sorting half elements?

In the gist (you accidentally linked both to the same), you have a few typos.

Related Questions