Since "5 "is less than "6", why would it not add "1 "

Just to clarify, are you wondering why your output is not [ 1, 2, 3, 4, 5 ] or why it is not [ 1, 2, 3, 4, 5, 6 ]?