Finished the routine to print in size order.