Bubble sort is a Sorting Algorithm which works in a way, that the largest (smallest) value moves through the dataset like a bubble through a liquid.
The base Principle is: compare the Data with its Neighbours: If the Neighbour is larger (smaller) then exchange both data.
The value in Brackes are dependent on the sorting Order.
To find Details you should look in a book on sorting algorithms , May be "Algorithms" by Author:Knuth. I have no further Information here.
hnd
hasso55@yahoo.com