Using Order By to sort a list of words alphabetically
Imports System
Imports System.IO
Imports System.Reflection
Imports System.Linq
Imports System.Xml.Linq
Public Class MainClass
Public Shared Sub Main
Dim words() As String = {"this", "is", "a","test"}
Dim sortedWords = From word In words _
Order By word
Console.WriteLine("The sorted list of words:")
For Each w In sortedWords
Console.WriteLine(w)
Next
End Sub
End Class