I can not sort the search of documents Storage Service.
count is greater than 10 extracts the document, and I want to sort by count.
I run the following code, but 41 have been extracted instead of 15 results.
Please tell me how to solve.
[JSON Document]
{"count": 10}
{"count": 41}
{"count": 15}
[code]
String key = "count";
int value = 10;
Query query = QueryBuilder.build (key, value, Operator.GREATER_THAN);
int max = 1;
int offset = 0;
Storage storage = storageService.findDocsWithQueryPagingOrderBy (dbName, collectionName, query, max, offset, "count", OrderByType.ASCENDING);
ArrayList<Storage.JSONDocument> jsonDocList = storage.getJsonDocList();
for(int i=0;i<jsonDocList.size();i++)
{
System.out.println( jsonDocList.get(i).getJsonDoc());
}