Merge Sort and Bubble Sort For String Data

Category:
Lists, Collections and Arrays
Type:
Snippets
Difficulty:
Intermediate

Author: Nathan Moschkin

Version Compatibility: Visual Basic 6

More information:
There is an extensive description in the code for what a merge sort is. A merge sort can be quicker than a qsort, especially if you're working with nearly sorted data; however mergesort and qsort are very similar. This one sorts 5600 strings in less than a second. Took me a few hours to write.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: