How do I alphabetically sort a generic List(Of String) in VB.NET?

collections, list, vb.net

Solution

Doesn't this work?

MyList.Sort()

Problem

I've created and populated a generic list of strings like this: ``` Dim MyList As New List(Of String) MyList.Add("Beta") MyList.Add("Echo") MyList.Add("Charlie") MyList.Add("Alpha") MyList.Add("Delta") ``` Now I want to order it.

Original source