This code was designed to work under Microsoft Visual Basic™ and will need to be modified in order to be used in ASP. This is simply done by removing the type definitions for the variables and the procedure parameters ("As Integer").
To test this code under Visual Basic, simply create an empty form with a command button named "Command1". Paste the following code in the Code Listing for Form1 and you are ready to run.
This program demonstrates the three most common sort methods used in computer programming: "Bubble Sort", "Selection Sort" and the "Shell Sort". A performance counter in this code measures how efficient each sort method is. You should notice that the "Shell Sort" is the fastest sort method available.

