Mongoose Query prototype.sort() API
Mongoose is an Object Data Modeling (ODM) library for MongoDB. It defines a strongly-typed schema, with default values and schema validations which are later mapped to a MongoDB document. The Mongoose Query API sort() method is used to sort out the documents, from a collection, using the MongoDB qu