title: limit() and sort() order pymongo and mongodb
body: <p>Despite reading peoples answers stating that the sort is done first, evidence shows something different that the limit is done before the sort. Is there a way to force sort always first?</p>
  
  <pre><code>views = mongo.db.view_logging.find().sort([('count', 1)]).limit(10)
  </code></pre>
  
  <p>Whether I use <code>.sort().limit()</code> or <code>.limit().sort()</code>, the limit takes precedence. I wonder if this is something to do with <code>pymongo</code>...</p>