title: Javascript : natural sort of alphanumerical strings
body: <p>I'm looking for the easiest way to sort an array that consists of numbers and text, and a combination of these.</p>
  <p>E.g.</p>
  <pre><code>'123asd'
  '19asd'
  '12345asd'
  'asd123'
  'asd12'
  </code></pre>
  <p>turns into</p>
  <pre><code>'19asd'
  '123asd'
  '12345asd'
  'asd12'
  'asd123'
  </code></pre>
  <p>This is going to be used in combination with the solution to <a href="https://stackoverflow.com/questions/2793847/sort-outer-array-based-on-values-in-inner-array-javascript">another question I've asked here</a>.</p>
  <p>The sorting function in itself works, what I need is a function that can say that that '19asd' is smaller than '123asd'.</p>
  <p>I'm writing this in JavaScript.</p>
  <p>Edit: as <em>adormitu</em> pointed out, what I'm looking for is a function for natural sorting</p>