Hi, i was wondering i some one could show me how does a cocktail sort works in java. i need to sort an array list alphabetically any help would be nice ty