This is a variation bubble sort algorithm. It is slightly faster than the original bubble sort. HOW TO USE THIS: Keep inputting numbers in the text box. Press enter after you finish writing one number in the text box. Once you feel that you have written enough numbers, type the word "sort" into the text box and press enter. DO NOT USE TURBO MODE UNLESS YOU WANT THE SORTING TO BE WRONG!
I got my information from this documentary: The Secret Rules of Modern Living: Algorithms Now, HOW DOES THIS WORK? What happens is that the computer will look at the 1st and 2nd. Then, the computer will switch the position of those two numbers: the bigger one above, the smaller one below. Then, the computer will look at the 2nd and 3rd number and then the computer do the same thing. This gets repeated until every number is in the right position. 1 2, 2 3, 4 5, 6 7 etc...