BobBridges
Active Member
Not sure this is possible: Can I write a general subroutine that sorts a collection of objects on one of the object properties—WAIT, DON'T ANSWER YET!—where the property varies from one call to another? Like this, for example: I have two objects, Obj1 and Obj2. Obj1 has a number of properties include one called Key. Obj2 has only two properties named Name and Value. Is it possible to do this?
The SortCollection function must sort the collection provided by the property specified in the second argument. Can it be done?
Code:
Set Coll1 = SortCollection(Obj1, Key)
Set Coll2 = SortCollection(Obj2, Name)
Set Coll3 = SortCollection(Obj2, Value)