title: Spring Data JPA sorting on nested collection
body: <p>I have the following domain objects:</p>
  
  <pre><code>@Entity
  public class Item {
  
     @Id
     @GeneratedValue(strategy = GenerationType.AUTO)
     private Long id;
     private String name;
  
     @OneToMany
     private List&lt;PropertyDefinition&gt; propertyDefinitions;
  }
  
  @Entity
  public class PropertyDefinition {
  
     @Id
     private Long id;
  
     private final String name;
     private final String value;
  }
  </code></pre>
  
  <p>I would like to sort the items for example "title" named PropertyDefinition.value</p>
  
  <p>How could I do that with Spring Data JPA?</p>
  
  <pre><code>Iterable&lt;Item&gt; items = itemRepository.findAll(new Sort("???"));
  </code></pre>
  
  <p>example code can be found here:<br>
  <a href="https://github.com/altfatterz/sort-poc/" rel="noreferrer">https://github.com/altfatterz/sort-poc/</a></p>
  
  <p>Any feedback appreciated.</p>