From 672876f3da60a65e908275df0187f45a8136dba6 Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Mon, 16 Dec 2019 13:05:55 -0800 Subject: [PATCH] Passed sorting to next pageable request from cosmos page request (#461) --- .../spring/data/cosmosdb/core/query/CosmosPageRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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