title: Spring Data @Query with Pageable and Sort not sorting
body: <p>I'm trying to specify a repository method annotated with <code>@Query</code> and a Pageable with a <code>Sort</code> object inside:</p>
  
  <p><strong>Edit 1:</strong> this repository is extending <code>PagingAndSortingRepository</code>.</p>
  
  <pre><code>@Query("...")
  Page&lt;Entity&gt; findBySomething(..., Pageable pageable);
  </code></pre>
  
  <p>The <code>pageable</code> object is specified using the following method signature:</p>
  
  <pre><code>public PageRequest(int page, int size, Direction direction, String... properties)
  </code></pre>
  
  <p>But the output query is generated without the sorting options, example: </p>
  
  <pre><code>select a, b, c from table_x where ... limit 10
  </code></pre>
  
  <p>...while I was expecting something as: </p>
  
  <pre><code>select a, b, c from table_x where ... order by a asc limit 10
  </code></pre>
  
  <p>Has anybody here faced this sort of problem?
  I'm using Spring-Boot 1.5.x.</p>