With what instruction is the response of a query ordered with mongodb-driver-sync in Java with mongoTemplate?

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)