Here comes one more as an article to your other duplicate thread - Bubble sort and Headp Sort. Thread closed.