M
Martin
Hi,
Can anybody please tell me if it is possible to sort a string collection
into alphabetical order (or indeed sort in any order at all).
I have made a "stringCollection" which is in the
"System.Collections.Specialized" namespace, however there does not seem to
be any "sort" method.
my code is below
System.Collections.Specialized.StringCollection stringCol = new
System.Collections.Specialized.StringCollection();
stringCol.Add("martin");
stringCol.Add("George");
stringCol.Add("Adrian");
stringCol.Add("Charlie");
stringCol.Add("Greg");
stringCol.Add("Albert");
stringCol.sort /// Can't be this......
Please can somebody let me know the best way to implement a sort method --
maybe I have to derive my own....
thanks in advance
cheers
martin.
Can anybody please tell me if it is possible to sort a string collection
into alphabetical order (or indeed sort in any order at all).
I have made a "stringCollection" which is in the
"System.Collections.Specialized" namespace, however there does not seem to
be any "sort" method.
my code is below
System.Collections.Specialized.StringCollection stringCol = new
System.Collections.Specialized.StringCollection();
stringCol.Add("martin");
stringCol.Add("George");
stringCol.Add("Adrian");
stringCol.Add("Charlie");
stringCol.Add("Greg");
stringCol.Add("Albert");
stringCol.sort /// Can't be this......
Please can somebody let me know the best way to implement a sort method --
maybe I have to derive my own....
thanks in advance
cheers
martin.