When called with index argument, the list swaps removed element with last to pop from the back. This is an optimization, but it makes the list behave not in a way one would expect. For consistency with Python list, the pop method shouldn't change the order of elements.