title: MongoDB Database, order by a field which is a string field but with a number in it
body: <p>I have a MongoDB and I need to order by a field (id), but this field is a string field with a number in it.</p>
  
  <p>Example:</p>
  
  <pre><code>   {
       "_id": ObjectId("4e60f8c2b1638e5479c8ba6f"),
       "id": "3188",
       "type": "P"
     }
  </code></pre>
  
  <p>The id field with value "3188" I need to order on that field as if it's an integer. Has MongoDB got some magic that it can do this?</p>
  
  <p>Thanks!</p>