1.

Which of the following method corresponds to Order by clause in SQL?(a) sort()(b) order()(c) orderby()(d) all of the mentionedThis question was addressed to me in semester exam.Enquiry is from Getting Started with MongoDB in chapter MongoDB CRUD Concepts and Operation of MongoDB

Answer»

Correct answer is (a) sort()

Best explanation: The sort() method ORDERS the DOCUMENTS in the RESULT SET.



Discussion

No Comment Found

Related InterviewSolutions