Cocktail sort, or bidirectional bubble sort, is a variation of bubble sort that also addresses the problem of turtles, albeit less effectively.
Cocktail sort, ili dvosmerni bubble sort, je varijenta bubble sort koji takođe govori o problemu 'turtleova', mada manje efikasno.