I don’t care about the following query, it does not sort in ascending order
Bson sortl = Sorts.orderBy(Sorts.ascending(“X”));
mongoTemplate.find(new BasicQuery(new Document(query.toBsonDocument()),new Document(sortl.toBsonDocument())), d.class)
I don’t care about the following query, it does not sort in ascending order
Bson sortl = Sorts.orderBy(Sorts.ascending(“X”));
mongoTemplate.find(new BasicQuery(new Document(query.toBsonDocument()),new Document(sortl.toBsonDocument())), d.class)