I have a collection of classes which I routinely access through a for each...next loop. My problem is that this loops through each object sorted by index, and I need to sort them by key. Is there a way to do this?
Printable View
I have a collection of classes which I routinely access through a for each...next loop. My problem is that this loops through each object sorted by index, and I need to sort them by key. Is there a way to do this?
I'm not sure if hashtable would do this but it has the ability to sort and restore by index (as I remember)Quote:
Originally posted by capable_coder
I have a collection of classes which I routinely access through a for each...next loop. My problem is that this loops through each object sorted by index, and I need to sort them by key. Is there a way to do this?