diff --git a/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CosmosPageRequest.java b/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CosmosPageRequest.java index fd3f194..58a2dc3 100644 --- a/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CosmosPageRequest.java +++ b/src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CosmosPageRequest.java @@ -59,7 +59,7 @@ public class CosmosPageRequest extends PageRequest { @Override public Pageable next() { return new CosmosPageRequest(this.offset + (long) this.getPageSize(), - this.getPageNumber() + 1, getPageSize(), this.requestContinuation); + this.getPageNumber() + 1, getPageSize(), this.requestContinuation, getSort()); } @Override