Here's a quicksort algorithm. I have one I made at home that is much better, but this one will get you started on your way. This one is used for an array or integers. It is easily modified to be used with other types of data, however. Here's the key, though. You need to modify the sort so that it sorts both dimensions of your array. (Since your array will look like this: vArray(4,1), you can just stick in hard code for sorting the other dimension, but I recommend doing it right and making it general enough so you can use the algorithm again even if your array is like vArray(100,10)). Anyway, sorry I couldn't give you the exact code for sorting it, but at least this way you'll learn something. =] http://www.26thcentury.com/~buc/Info/Soft-prg/lang/vb/code/conf-example-code.txt
Enter your message below
Sign in or Join us (it's free).