Saturday, 15 September 2012

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


I created and populated the generic list of strings like this:

  Dim MyList New MyList.Add ("Beta") MyList.Add ("Echo") MyList.Add ("Charlie") MyList.Add ("alpha") MyList.Add ("Delta") as the list (of the string)  

Now I want to order it

Does this not work?

  MyList.Sort ()  

No comments:

Post a Comment