To sort documents in MongoDB, you need to use sort() method. The method accepts a document containing a list of fields along with their sorting order.
確定! 回上一頁