I need to migrate PHP application from old Mongo driver to new and I am not sure if is correct to use $collection->find()->sort()->limit()
call. Documentation does not mention sort() and limit() methods only options param in find(). Why? IDE shows me the sort method but I dont know if it is correct. Also MongoCursor class does not have any sort method. Thanks.