This is actually a continuation of my previous question and I\'m reasking as I\'ve realised I didn\'t quite ask the question problem and now I have a different error response.
The problem is because .sort expects a cursor and .findOne() doesn't not give a cursor. Instead, one should use .find()
.sort
.findOne()
.find()