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

17,388

Doesn't this work?

MyList.Sort()
Share:
17,388

Related videos on Youtube

Zack Peterson
Author by

Zack Peterson

Specializes in the design and creation of web and desktop applications. Contributes in all aspects of the software development process such as: requirements analysis and product definition; prototyping; choosing architecture and framework; interface design; database design; installation and integration; documentation and training; gathering feedback; and maintenance.

Updated on April 15, 2022

Comments

  • Zack Peterson
    Zack Peterson about 2 years

    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.