both methods are not working with findOne :
await colllections.findOne({}, { sort: { timestamp: -1} })
await colllections.findOne({}).({ sort: { timestamp: -1} })
both methods are not working with findOne :
await colllections.findOne({}, { sort: { timestamp: -1} })
await colllections.findOne({}).({ sort: { timestamp: -1} })
The function findOne returns only one document. Why do you want to sort a single document?