Simple way to sort a collection class

I have a collection of countries, called CountryCollection, defined thus:

public class CountryCollection : KeyedCollection<string, Country>

A country has a CountryName and CountryCode, among other things.

What is the best/easiest way to sort the collection by CountryName in C# ?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

xav056Connect With a Mentor Commented:
Use a cortedDictionary collection
Eduardo GoicovichConnect With a Mentor IT ConsultantCommented:
basically involves sorting the underlying List of the collection

example here
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.