title: JavaScript array sort-function for both numeric and alphanumeric string
body: <p>I need to sort an array that looks like this:</p>
  
  <pre><code>var array = new Array();&lt;br /&gt;
  array[0]="201206031245 firstitem";&lt;br /&gt;
  array[1]="201206020800 seconditem";&lt;br /&gt;
  array[2]="201206040604 itemthree";&lt;br /&gt;
  array[3]="201206031345 lastitem";&lt;br /&gt;
  </code></pre>
  
  <p>How would I sort this numerically and descending?</p>
  
  <p>Thanks in advance!</p>