title: How to alphabetically sort two dimensional array in java
body: <p>Lets say i have a two dimensional array:</p>
  
  <pre><code>String [][] arr = {
  {"bob","one"},
  {"jack","two"},
  {"adam","three"}
  };
  </code></pre>
  
  <p>i would like to sort alphabetically according to column 0
  so adam would be first the bob the jack - and it (or new array) will look like so:</p>
  
  <pre><code>{"adam","three"}
  {"bob","one"},
  {"jack","two"},
  </code></pre>