title: Compound sort not working in Spring mongodb
body: <p>I have a requirement where the records will be sorted based on created date first and if created dates are same, we will sort on another field called as ratings.</p>
  
  <p>In my Spring mongo project I am doing the following thing:</p>
  
  <pre><code>Query query = new Query();
  query.with(new Sort(Direction.DESC, "crDate")).with(new Sort(Direction.DESC, "ratings"));
  </code></pre>
  
  <p>For some reasons its only sorting on the first field ie crDate. And if both dates are same, sort by ratings never work.</p>
  
  <p>When i try to check the value of sort object it shows me this:</p>
  
  <pre><code>{"crDate":-1,"ratings":-1}
  </code></pre>
  
  <p>Another finding is, mongo takes in the following syntax for compound sorts:
  db.abc.find({..some criteria..}).<strong>sort([["crDate",-1],["ratings",-1]])</strong>;</p>
  
  <p>Is this a bug in spring mongodb implementation or I missed something?</p>