right swap right left left right right sorted