title: How can I sort by first column textually and then by the second numerically with 'sort'?
body: <p>I'm trying to sort the following file:</p>
  <pre><code>a 2
  b 1
  a 10
  </code></pre>
  <p>I need to get:</p>
  <pre><code>a 2
  a 10
  b 1
  </code></pre>
  <p>I know about the -kPOS[opts] option, and try to use it:</p>
  <pre><code>sort -k1 -k2n file
  </code></pre>
  <p>but this command gives me only:</p>
  <pre><code>a 10
  a 2
  b 1
  </code></pre>
  <p>So it sorts by the first column, but no by the second. Running just <code>sort -k2n file</code> sorts by the second column.</p>
  <pre><code>b 1
  a 2
  a 10
  </code></pre>
  <p>How could I sort it by two columns?</p>
  <h2>Edit:</h2>
  <p>sort (GNU coreutils) 5.93</p>