Your list is sorted it just doesn't look like it is because there is no spacing between numbers.



System.out.print(b[i]);
/* change above line so that
* 9111213141516202123
* it will have...