title: Saving and sorting dates in MongoDB
body: <p>I'm saving a date in a document the following way (NodeJS and Javascript driver for MongoDB):</p>
  
  <pre><code>my_data: {
      my_date: new Date()
  }
  db.collection("my_test_collection").save(my_data, {w: 0});
  </code></pre>
  
  <p>When I query the data from <code>my_test_collection</code> I see that <code>my_date</code> is actually a <code>String</code> and it looks like: <code>2013-09-23T10:46:01.914Z</code></p>
  
  <ol>
  <li>Does this matter?</li>
  <li>How do I sort my query by this field?</li>
  </ol>
  
  <p>I tried <code>....find().sort(['my_date', 'asc'])</code> but this doesn't seem to work.</p>