Sorting the list in html output
Halting criterion