This is what I get now:
> db.collection_name.findOne()
{
"_id" : ObjectId("whatever")
"c" : "a value"
"a" : "a value"
"b" : "a value"
}
Is there any function that I could use so that I can see the document's fields in lexicographic order (on a find() or findOne())? I would like to see:
> db.collection_name.findOne().something()
{
"_id" : ObjectId("whatever")
"a" : "a value"
"b" : "a value"
"c" : "a value"
}