title: Bash - numerical sort sorts 10s before 1s
body: <p>I'm in a directory.  There are two subdirectories and I want to list the files in them, in numerical order.  In the first directory, the files are named 01, 02, 03... and they sort fine.  But in the second directory, the files are named 1, 2, 3 and thus the 10 sorts before the 1.  Keying does not seem to work as I'm a directory back from the files, so a script such as this:</p>
  
  <pre><code>find "$PWD" -type f|sort -n -t _ -k 1
  </code></pre>
  
  <p>Does not work.  How do I list in true numerical order?</p>