title: How to find the smallest number in a mongo query?
body: <p>I have the following objects in my mongo db:</p>
  
  <pre><code>{
    "type" : "timetype"
    "time" : "18"
  }
  {
    "type" : "timetype"
    "time" : "5"
  }
  {
    "type" : "timetype"
    "time" : "43"
  }
  {
    "type" : "timetype"
    "time" : "23"
  }
  </code></pre>
  
  <p>And my java code looks like: </p>
  
  <pre><code>BasicDBObject query = new BasicDBObject();
  query.put("type", "timetype");
  
   //I don't know what to put in the (...)
  DBCursor cursor = Collection.find(query).sort(...).limit(1);
  </code></pre>
  
  <p>I would like to find the entry with the smallest time in my mongo database that meets the query parameter but I don't know what to put in sort to make that happen.</p>