Ive got a list full of AdminLink objects that have the attributes "Title" "URL" and "Description". How would I sort the list of objects by their Title? Thanks.
Printable View
Ive got a list full of AdminLink objects that have the attributes "Title" "URL" and "Description". How would I sort the list of objects by their Title? Thanks.
Hi there,
You should implement IComparable overriding int CompareTo(object obj) where you do the comparison based on Title. Then you use the Sort method provided by the ArrayList.