title: Sorting 2D array of chars C++
body: <p>I have a 2d array of chars where in each row I store a name... such as this:</p>
  
  <pre><code>J O H N
  P E T E R
  S T E P H E N
  A R N O L D
  J A C K
  </code></pre>
  
  <p>How should I go about sorting the array so that I end up with</p>
  
  <pre><code>A R N O L D
  J A C K
  J O H N
  P E T E R
  S T E P H E N
  </code></pre>
  
  <p>These is a 2d array of chars..... no strings or char points..... </p>