Sort Collection by Property?

AlmostVinDiesel

New Member
Joined
Oct 26, 2005
Messages
18
Hi All--

I'm looking for VB 6.0 algorithm that will allow me to sort a collection by property. Any sort algorithm is fine, but I'd prefer something faster than insertion/selection sort. For example, I created a member collection that contains the following properties:

first name
last name
zip
address1
..etc

I'd like to sort the collection by zip. Later, I'd like to sort the collection by last name. Does anyone have the code?

Thanks!

--Mars
 

Some videos you may like

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Watch MrExcel Video

Forum statistics

Threads
1,118,763
Messages
5,574,095
Members
412,567
Latest member
mm1
Top