title: Spring Data REST "findBy..." not sorting
body: <p>I have a Spring Boot API (using 2.0.5.RELEASE spring-boot-starter-parent) and I'm using the spring-boot-starter-rest package to generate the endpoints for my API. In one of the repositories I have the following method:</p>
  
  <pre><code>@Repository
  public interface RackPositionDao extends JpaRepository&lt;RackPosition, String&gt; {
      List&lt;RackPosition&gt; findByRack(@Param("rack") Rack rack);
  }
  </code></pre>
  
  <p>Which exposes an endpoint at http://{base}/api/v1/rackPositions/findByRack</p>
  
  <p>If I then call </p>
  
  <blockquote>
    <p>http://{base}/api/v1/rackPositions/findByRack?rack={rack
    url}&amp;sort=positionNumber,asc</p>
  </blockquote>
  
  <p>in Postman, the list returned isn't sorted. 'positionNumber' is a property on the RackPosition entity.</p>
  
  <p>However if I change the repository method to</p>
  
  <pre><code>@Repository
  public interface RackPositionDao extends JpaRepository&lt;RackPosition, String&gt; {
      List&lt;RackPosition&gt; findByRackOrderByPositionNumberAsc(@Param("rack") Rack rack);
  }
  </code></pre>
  
  <p>and then call </p>
  
  <blockquote>
    <p>http://{base}/api/v1/rackPositions/findByRackOrderByPositionNumberAsc?rack={rack
    url}</p>
  </blockquote>
  
  <p>it works fine. Is there a reason why the sort parameter doesn't work?</p>