How to write orderby clause using MongoDB java drivers?

Today we will write a sample program using MongoDB java driver to sort a collection. Assume that we have a collection like this.

Sorting or ordering by a particular column is really simple using the console, The sort function takes column(s) name and order in which the sorting needs to be done. (-1 == [...]
Continue reading…