Hi Anneke, your original code tried to sort a list; that is where you need an object that implements IComparer so you can specify your specific sort order. The Sort method holds all the code to iterate through the collection as often as needed to get it sorted, you only have to tell it what your sort order is by offering an IComparer object. On the other hand, if you need to FIND an object in a collection, you have to do that yourself, probably using a loop (such as foreach); you could still use the IComparer object inside the loop, but you don't have to do it that way. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.