$match and $sort mongodb order code example
Example 1: mongodb sort query
db.Employee.find().sort({Employeeid:-1}).forEach(printjson)
Example 2: reverse mongo results order
result.reverse();
db.Employee.find().sort({Employeeid:-1}).forEach(printjson)
result.reverse();