title: How to convert array of string to array of integer
body: <p>I'm trying to learn VB. </p>
  
  <p>I want to convert the array of string to array of int then sort the new array of in and display it in one line. </p>
  
  <p>Example:
  Input
  2 4 1 2 5</p>
  
  <p>Result: 1 2 2 4 5</p>
  
  <p>I tried some solutions but didn't work</p>
  
  <p>Here is my current code:</p>
  
  <pre><code> Dim stringnum As String = "4 2 3"
      Dim result() As String = Split(stringnum, " ")
  
      Dim intList() As Integer
  
      intList = result.ConvertAll(Function(s) Integer.Parse(s))
  
      Console.WriteLine(Join(intList))
      Console.ReadLine()
  </code></pre>