0 votes
in Big Data | Hadoop by
What is the syntax of the sort() method in MongoDB ?

1 Answer

0 votes
by

In MongoDB, the following syntax is used for sorting documents:

>db.COLLECTION_NAME.find().sort({KEY:1})

Related questions

0 votes
asked Mar 22, 2020 in Big Data | Hadoop by SakshiSharma
0 votes
asked Mar 22, 2020 in Big Data | Hadoop by SakshiSharma
...