Sort Objects in a Collection by Specified Property

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

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
This routine is designed to re-arrange OBJECTS (not values!) inside a collection by any numeric/string/date property which name is supplied as an argument.

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

Declarations:

Code: