Just pass in a string to the SortString method, and you will get a string in return that is sorted. It won't account for every possiblity, but if you have a string of words that is seperated by spaces, it will work just fine.
VB Code:
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         MessageBox.Show(SortString("This is the new string to sort"))
  3.     End Sub
  4.  
  5.  
  6.  
  7.     Private Function SortString(ByVal theString As String) As String
  8.         Dim arrayOfStrings() As String = theString.Split(" ")
  9.         Array.Sort(arrayOfStrings)
  10.         Dim mystrBuilder As System.Text.StringBuilder = New System.Text.StringBuilder()
  11.         Dim i As Integer
  12.         For i = 1 To arrayOfStrings.GetUpperBound(0) - 1
  13.             mystrBuilder.Append(arrayOfStrings(i) & " ")
  14.         Next
  15.         Dim returnString As String = mystrBuilder.ToString()
  16.         returnString = returnString.Trim()
  17.         Return returnString
  18.     End Function