Quantcast
Channel: DigitalOcean Community Tutorials
Viewing all articles
Browse latest Browse all 136

MongoDB sort example using Mongo Shell and Java Driver

$
0
0
MongoDB sort method sorts the document in either ascending or descending order as specified by the user in the input argument. The syntax for sort method is sort order can take the following values 1: specifies that the field should be sorted in ascending order -1: specifies that the field …

Viewing all articles
Browse latest Browse all 136

Trending Articles