Amtex Systems interview question

what is heap sort?