ChiHappens, I'm not criticising you for answering the question, but I am questioning the questioner! Everyone's heard of bubblesort because it's in all the textbooks, but that doesn't make it good. I quote from Press et al "Numerical recipes in C" 2nd ed., page 330
"We will draw the line, however, at the inefficient N^2 algorithm, beloved of elementary computer science texts, called bubble sort. If you know what bubble sort is, wipe it from your mind; if you don't know, make a point of never finding out!"
These authors are good enough for me.
Addendum to your 2nd reply: quicksort's worst case is usually a properly sorted data set! This is worth knowing, and avoiding.