title: sorting file ouput in ascending order
body: <pre><code>import java.util.*;
  import java.io.*;
  
  
  public class MarksProcess {
  public static void main (String[] args)throws Exception{
      File inFile = new File ("hello.txt");
      Scanner input = new Scanner(inFile);
  
      while (input.hasNext()){
          String line = input .nextLine();
          System.out.println(line);
  
      }
      input.close();
  
  }
  }
  </code></pre>
  
  <p>The output of my file is:</p>
  
  <pre><code>345493 Jim
  123464 Pete
  123234 Jay
  </code></pre>
  
  <p>How do I sort the output of the text file in ascending order by using the student number so it will look like this:</p>
  
  <pre><code>123234 Jay
  123464 Pete
  345493 Jim
  </code></pre>