the given code sorts out the integer values and displays it on web browser