title: Problem with implementing Sort in Spring Data (Mongodb)
body: <p>I need to do the following sql query using spring data api:</p>
  
  <pre><code>Select * from TagTest where tagName = "water temperature" Order by timestamp desc;
  </code></pre>
  
  <p>I came up with the query:</p>
  
  <pre><code>Query query = new Query(Criteria.where("tagName").is("water temperature"));
  </code></pre>
  
  <p>I defined <code>Sort</code> as:</p>
  
  <pre><code>query.sort().on("timestamp", Order.DESCENDING);
  </code></pre>
  
  <p>and the using mongoTemplate do <code>findOne()</code> like:</p>
  
  <pre><code>mongoTemplate.findOne(Collection, query, MongoTag.class);
  </code></pre>
  
  <p>But I cannot find a way to apply the sort to retrieve results in <code>findOne</code>. 
  Is the approach correct? Please let me know the correct approach in case I am wrong.
  Thanks.</p>