Hey,
I have a collection of objects with string keys.
How can I sort teh collection based on the key?
Printable View
Hey,
I have a collection of objects with string keys.
How can I sort teh collection based on the key?
if they are keyed, then you don't have to sort them. they are built in the correct sequence.
You can't. You don't even have access to know what the keys are, much less how to sort them. You'd have to roll your own collection or use the Dictionary object to have access to the keys.Quote:
Originally Posted by vbgladiator