An Insertion Sort Algorithm
Category:Lists, Collections and Arrays
Version Compatibility: Visual Basic 6, Visual Basic Script
This Sub below is an insertion sort algorithm. For every element you want to insert into your array, you call this sub. Though loosely based on VB6, you will actually need to ReDim your arrays to make this work in VB6.
Instructions: Copy the declarations and code below and paste directly into your VB project.