Hi,
I'm having trouble sorting an array of items. The Array is composed of items that came from a list.
Code:
ArrayList myCollection = new ArrayList(List.Count);
foreach (XmlNode n in audienceList)
{
item = new ListItem(n.InnerText, n.InnerText);
myCollection.Add(item);
}
myCollection.Sort();
I understand I need an IComparer. Could someone please explain how to integrate it so I can sort the ArrayList.
Thank you!