Sort a collection
-
HI, I've a collection which contains a couple of object I've created. Is there a simple method to sort this collection or should I code a standard sort algorithm ?
if the Collection you are using is the one priovided by the .Net Framework(i.e. arrays, Arraylist etc.) you can just use:
Collection.Sort
But if the collection you are using is inherited, then you'll have to do the coding yourself. Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark Twain -
if the Collection you are using is the one priovided by the .Net Framework(i.e. arrays, Arraylist etc.) you can just use:
Collection.Sort
But if the collection you are using is inherited, then you'll have to do the coding yourself. Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark Twain