Welcome to the Treehouse Community
Looking to learn something new?
I need help with IComparer implementation.
I am lost on this task. I really want to do it, but I'm not entirely sure on the steps that I need to take, logically.
Daniel Medina13,863 Points
Congratulations on solving the challenge!
I was also curious about why you'd need a
new Student() too.
The short answer, from what I found, is that you need to use a
Sort() method so that you are properly implementing the IComparer
interface. If you try to sort without any Student object, you'll get an InvalidOperationException.
Personally, I found this Stack Overflow post as the most helpful, particularly the answer with 207 votes:
I hope this helps!