title: How can I do paging and sorting using spring data with Couchbase
body: <p>I am trying to do paging and sorting using <code>spring-data-couchbase</code> but it seems <code>org.springframework.data.couchbase.repository</code> has only <code>CouchbaseRepository</code> which is extending <code>CrudRepository&lt;T,ID&gt;</code>. </p>
  
  <p>There is no interface extending from  <code>PagingAndSortingRepository&lt;T,ID&gt;</code>.</p>
  
  <p><a href="http://docs.spring.io/spring-data/couchbase/docs/1.0.x/api/org/springframework/data/couchbase/repository/CouchbaseRepository.html" rel="nofollow">http://docs.spring.io/spring-data/couchbase/docs/1.0.x/api/org/springframework/data/couchbase/repository/CouchbaseRepository.html</a></p>
  
  <p>I did implement an unconventional solution to the problem setting skip and limit. But want to get total number of page count, which is not available with this solution. 
  It seems <code>Page&lt;T&gt;</code> does have <code>.getTotalPages()</code></p>