Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Mongo complex sorting in MongoDB?
Home
MongoDB
Mongo complex sorting in MongoDB?
0
votes
asked
Jun 3, 2020
in
MongoDB
by
Robindeniel
Mongo complex sorting in MongoDB?
#mongodb-complex-sorting
#mongodb-sorti
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 3, 2020
by
SakshiSharma
I know how to sort queries in MongoDB by multiple fields, e.g.,db.coll.find().sort({a:1,b:-1}).
Related questions
0
votes
Q: Which command can be used in mongo shell to show all the databases in your MongoDB instance?
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
+1
vote
Q: By default, the MongoDB cursor in mongo shell is configured to return how many documents? To get the next set of documents, which command is used?
asked
Jun 17, 2020
in
MongoDB
by
AdilsonLima
#mangodb
0
votes
Q: What are some GUIs to use with Mongo, and what features do they offer in MongoDB? I’m looking for facts here, not opinions on which interface is best.
asked
Jun 3, 2020
in
MongoDB
by
Robindeniel
#mongodb-gui
0
votes
Q: How do we perform sorting and Explain Project in MongoDB?
asked
Jan 7, 2023
in
MongoDB
by
sharadyadav1986
mongodb
project
sorting
0
votes
Q: What is Mongo Management Studio
asked
Aug 20, 2022
in
MongoDB
by
Robin
mongodb
management-studio
+2
votes
Q: Mongo client will generate _____ command to initiate a new replica set.
asked
Apr 17, 2021
in
MongoDB
by
rajeshsharma
mongodb
mongodb-mcq
mongodo-interview-questions
mongodb-questions-answers
mongodb-best-questions
top-50-mongodb-mcq
0
votes
Q: How to update based on existing data in mongo
asked
Jun 3, 2020
in
MongoDB
by
Robindeniel
#mongodb-database-update
0
votes
Q: How do we delete everything from the MongoDB database?
asked
Jan 7, 2023
in
MongoDB
by
sharadyadav1986
mongodb
database-deletion
0
votes
Q: How do we create a database in MongoDB?
asked
Jan 7, 2023
in
MongoDB
by
sharadyadav1986
mongodb
database-creation
0
votes
Q: How can MongoDB simulate subquery or join?
asked
Jan 7, 2023
in
MongoDB
by
sharadyadav1986
mongodb
simulate-query
...