title: How to apply default sorting in Spring JPA?
body: <p>I'd like to provide a default pagination for my method using <code>Spring data jpa</code>.
  How do I have to call the following method so that default pagination is applied?
  I tried passing <code>null</code> argument but that would lead to an unpaged list.</p>
  
  <pre><code>interface PagedRepository extends CrudRepository&lt;User, Long&gt; {
      @Query("SELECT u FROM user u WHERE)
      List&lt;User&gt; findAllPaged(@PageableDefault(size = 20));
  }
  
  //repo.findAllPaged(null);
  </code></pre>
  
  <p>I could pass a new Pageable myself, but that make <code>@PageableDefault</code> useless.
  <code>repo.findAllPaged(new PageableRequest(0, 20));</code></p>