title: AWK string comparison by alphabetical order
body: <p>The problem is simple.
  I have an <strong>AWK script</strong> and I have two strings (names). If they have the same length, I need to pick the one which is &quot;<strong>sooner</strong>&quot; <strong>in aplhabet</strong> according <a href="http://www.asciitable.com/" rel="nofollow noreferrer">ASCII</a>.</p>
  <p>first example:</p>
  <pre><code> 1st string = &quot;aac&quot;, 2nd string = &quot;aab&quot;
  </code></pre>
  <p>result: <code>aab</code></p>
  <p>second example:</p>
  <pre><code>1st string = &quot;Donald J Cat&quot;, 2nd string = &quot;Donald J Bat&quot;
  </code></pre>
  <p>result : <code>Donald J Bat</code></p>
  <p>Is there a simple way how to do it in AWK ?</p>