Arrange the numbers in sequence