I have a collection in mongo db which looks like this:
"notifications" : [
{
"type" : "Shout",
"created" : ISODate("2014-04-24T13:37:02.678Z")
},
{
"type" : "Shout",
"created" : ISODate("2014-04-25T17:34:15.388Z")
}
];
I just want to sort these notifications by created date and fetch them using mongo query but not able to do it. Can anybody help me.. Thanks..