title: Spring Data Query
body: <p>I have a Mongo DB - Spring Data Document named <strong>Archive</strong> with the properties <strong>iucId</strong> and <strong>storageDateTime</strong>. Now I will query for the latest stored Archive with a specific iucId. I have no idea how to ask about the latest <strong>storageDateTime</strong>.</p>
  
  <p>Ask about iucId is easy: </p>
  
  <pre><code>List&lt;Archive&gt; findArchiveByIucId(final String iucId);
  </code></pre>
  
  <p>but the record with the latest <strong>storageDateTime</strong> is my problem.</p>
  
  <p>Could anyone help me concerning this issue?
  Thanks a lot for help!!</p>
  
  <pre><code>@Document(collection = "Archive")
  public class Archive {
  
      @Id
      private String id;
      private String iucId
      private DateTime storageDateTime;
  </code></pre>