cocktailSort