title: Sort table with Matlab
body: <p>I am a beginner in Matlab and want to sort a simple table. I have a table with numbers and letters in .txt format:</p>
  
  <pre><code>K L M  N  O
  1 1 a1 3b 1.72
  2 1 2c 4d 1.43
  3 1 e3 5f 1.33
  4 1 g4 h5 1.64
  1 2 4i 4j 1.48
  2 2 6k l8 2.33
  3 2 m7 8n 2.12
  4 2 o8 p0 1.92
  </code></pre>
  
  <p>Now I want so sort this table using Matlab. What I want to have is:</p>
  
  <pre><code>K L M  N  O
  1 1 a1 3b 1.72
  1 2 4i 4j 1.48    
  2 1 2c 4d 1.43
  2 2 6k l8 2.33
  3 1 e3 5f 1.33
  3 2 m7 8n 2.12
  4 1 g4 h5 1.64
  4 2 o8 p0 1.92
  </code></pre>
  
  <p>I want to sort by the first column. Afterwards I want Matlab to save the result in a new .txt-file or open Excel that I can use this table. Is that possible?</p>
  
  <p>I tried to do this by using two for-loops but I get a lot of errors. Is there a simple way to do this mit Matlab?</p>