I would expect the output for the following snippet to be 1, 2, 4, 3. But, the actual output order is 1, 2, 3, 4.
1, 2, 4, 3
1, 2, 3, 4