An Insertion Sort Algorithm

Category:
Lists, Collections and Arrays
Type:
Snippets
Difficulty:
Advanced
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic Script

More information:
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.

Declarations:

Code: