like a List<string> but keeps the strings ordered?

c#, list, sorting

Solution

You can try a SortedList or a SortedDictionary. Both will do what you need to do, but with slightly differing implementations. You can find the differences highlighted here.

Problem

I want something like a List<string>, but whenever I do an "Add", it keeps the list sorted. Any ideas?

Original source