title: How can I sort documents using Mongoose.js 3.8.20 and MongoDB 2.6.5?
body: <p>Sorting documents using Mongoose 3.8.20 doesn't work with MongoDB 2.6.5. With previous versions of MongoDB I was able to use <code>.sort({ orgName: 'ASC' })</code> without a problem, now it causes an error.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>database.model.clients.find({ myField: 'value' })
  .sort({ orgName: 'ASC' })  // Error: { [MongoError: Can't canonicalize query: BadValue bad sort specification] name: 'MongoError' }
  .sort({ orgName: 1 })      // Sorting is ignored.
  .sort('orgName')           // Sorting is ignored.
  .exec(function (err, docs) {
    
    console.log(err);  
    
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can I sort the documents?</p>