write the numbers in ascendingorder