before: 5 2 4 6 1 3
after:  1 2 3 4 5 6
