What are you confused about in using/writing a bubble sort algorithm? It's probably one of the best documented sorting approaches on the Internet, so you might want review more than one...