title: How to make a MongoDB query sort on strings with -number postfix?
body: <p>I have a query:</p>
  
  <pre><code>ownUnnamedPages = Entries.find( { author : this.userId, title : {$regex: /^unnamed-/ }}, {sort: { title: 1 }}).fetch()
  </code></pre>
  
  <p>That returns the following array sorted:</p>
  
  <pre><code>[ { 
      title: 'unnamed-1',
      text: '&lt;p&gt;sdaasdasdasd&lt;/p&gt;',
      tags: [],
      _id: 'Wkxxpapm8bbiq59ig',
      author: 'AHSwfYgeGmur9oHzu',
      visibility: 'public' },
  { 
      title: 'unnamed-10',
      text: '',
      author: 'AHSwfYgeGmur9oHzu',
      visibility: 'public',
      _id: 'aDSN2XFjQPh9HPu4c' },
  { 
      title: 'unnamed-2',
      text: '&lt;p&gt;kkhjk&lt;/p&gt;',
      tags: [],
      _id: 'iM9FMCsyzehQvYGKj',
      author: 'AHSwfYgeGmur9oHzu',
      visibility: 'public' },
  { 
      title: 'unnamed-3',
      text: '',
      tags: [],
      _id: 'zK2w9MEQGnwsm3Cqh',
      author: 'AHSwfYgeGmur9oHzu',
      visibility: 'public' }]
  </code></pre>
  
  <p>The problem is that it seems to sort on the first numeric character so it thinks the proper sequence is 1, 10, 2, 3, etc....
  what I really want is for it to sort on both the whole numerical part so that 10 would be at the end.</p>
  
  <p>I'd prefer not to do this by having additional numbers such as 01 or 001 for the numbers.</p>
  
  <p>How would I do that?</p>