It's hard for me to take this post seriously, when the first line includes "bubble sort". Bubble sort is probably one of the worst algorithms you can use, even for short lists. Insertion sort is just as easy to understand as bubble sort, and its performance is much better.