title: order by date in txt file using vb.net
body: <p>i made a program that takes release date and title from IMDB api and saves them in them in .txt file...can i order them by date somehow</p>
  
  <p><img src="https://i.stack.imgur.com/MdzTw.png" alt="enter image description here"></p>
  
  <pre><code>Imports System.IO
  Imports System.Xml.Linq
  Imports System.Text.RegularExpressions
  
  Public Class Form1
  
      Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
  
          Dim _reg As Regex = New Regex("http://www.imdb.com/title/([A-Za-z0-9\-]+)/*?", _
                RegexOptions.IgnoreCase)
  
          Dim value As String = TextBox1.Text
  
          Dim m As Match = _reg.Match(value)
  
          If (m.Success) Then
              Dim key As String = m.Groups(1).Value
              Dim url As String = "http://mymovieapi.com/?id=" + key + "&amp;type=xml&amp;plot=none&amp;episode=0&amp;lang=en-US&amp;aka=simple&amp;release=simple&amp;business=0&amp;tech=0"
              Dim Document As XDocument = XDocument.Load(url)
              Dim title = Document.Root.Element("title").Value()
              Dim releaseDate = Date.ParseExact(Document.Root.Element("release_date").Value,
                    "yyyyMMdd", System.Globalization.CultureInfo.InstalledUICulture)
              TextBox2.Text = "Release Date: " &amp; releaseDate &amp; "  /   Title: " &amp; title
          Else : TextBox2.Text = "Please use IMDB links"
          End If
          Button2.Enabled = True
      End Sub
  
  
      Private Sub Button2_Click_1(sender As System.Object, e As System.EventArgs) Handles Button2.Click
          Dim Writer As System.IO.StreamWriter
          Writer = New System.IO.StreamWriter("C:\Users\Azer\Documents\Movies.txt", True)
          Writer.Write(TextBox2.Text &amp; vbCrLf)
          Writer.Close()
          Button2.Enabled = False
      End Sub
  
      Private Sub Button4_Click(sender As System.Object, e As System.EventArgs) Handles Button4.Click
          Dim Reader As System.IO.StreamReader
          Reader = New System.IO.StreamReader("C:\Users\Azer\Documents\Movies.txt")
          Dim tempstring As String
          Do
              tempstring = Reader.ReadLine()
              TextBox3.Text = TextBox3.Text + tempstring + vbCrLf
          Loop Until tempstring = ""
          Reader.Close()
      End Sub
  
      Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click
          Me.Close()
      End Sub
  
      Private Sub Button5_Click(sender As System.Object, e As System.EventArgs) Handles Button5.Click
          TextBox3.Clear()
      End Sub
  End Class
  </code></pre>