title: Basic sorting of 2D Arrays
body: <p>I cannot for the life of me figure out how to sort a 2D array while maintaining consistency with the array's structure. For instance, I have an array say...</p>
  <pre><code>myArray[4][3] = {{&quot;Tom&quot;, &quot;yes&quot;, &quot;yes&quot;},
                   {&quot;Bob&quot;, &quot;yes&quot;, &quot;no&quot;},
                   {&quot;Chris&quot;, &quot;no&quot;, &quot;no&quot;},
                   {&quot;Bill&quot;, &quot;no&quot;, &quot;yes&quot;}};
  </code></pre>
  <p>That when sorted should translate to...</p>
  <pre><code>myArray[4][3] = {{&quot;Bill&quot;, &quot;no&quot;, &quot;yes&quot;},
                   {&quot;Bob&quot;, &quot;yes&quot;, &quot;no&quot;},
                   {&quot;Chris&quot;, &quot;no&quot;, &quot;no&quot;},
                   {&quot;Tom&quot;, &quot;yes&quot;, &quot;yes&quot;}};
  </code></pre>
  <p>If I am phrasing my question correctly, in essence, I am trying to move the entire row in ascending order based on the element located in column 0.</p>