title: PyMongo - order of sort and limit in the find() method
body: <p>I'm trying to use PyMongo to select the most recent 6 entires in a DB sorted by Unix time.  I want to avoid having to use cursors, so have been using the parameters in the find() method.  The desired result in a Mongo query is below:</p>
  
  <pre><code>db.pings.find().sort({ serverTime: 1 }).limit(6)
  </code></pre>
  
  <p>In PyMongo, I'm doing the below:</p>
  
  <pre><code>pings = pings.find({'sessionId':sessionId}, sort=[('serverTime', pymongo.DESCENDING)], limit=6)
  </code></pre>
  
  <p>I've seen similar questions (such as this: <a href="https://stackoverflow.com/questions/14182035/pymongo-sort-limit-different">pymongo sort() limit() different?</a>) which don't specifically corespond to PyMongo.  Please can someone confirm to me that the above will sort the results before it selects the top 6, rather than selecting the top 6 and then sorting?</p>
  
  <p>Thanks,</p>
  
  <p>Sam</p>