But that's not what I'm trying to do.
In this case:
It should return:
The output result is/should-be based on the element positions relative to each other (inside the sub-sets).
In this case:
['bats','eagles','aligators']
(moved 'aligators' from begin to end)['bats','cats','eagles']
['cats','dogs','eagles']
It should return:
['bats', 'cats', 'dogs', 'eagles', 'aligators']
The output result is/should-be based on the element positions relative to each other (inside the sub-sets).