For fans of array sorting methods, 
here is a visual demonstration of the Bubble Sort. 
There should be no doubt why it's called what it's called ! 

First an area of the the screen is filled with randomly ordered color indexes.
This is a two dimensional array of bytes.
This array is bubble sorted vertically, and then horizontally,
revealing a different palette of colors each time.

To STOP the program, hit any key.
For purposes of speed, there is no key checking inside the sorting loop.
The program must finish its job before you can exit it.

Thanks for your interest. Have fun.

James Lehman
james@rainbow-akron.com
http://www.rainbow-akron.com/james