PTC interview question

what is heap sorting? how you will implement it