The cursor returned from pymongo query has result in different sequence then originally stored in database. why and how to fix it.
Returned Json
{"ID":"123", "Remediation":"restart", "credentials":"user:pass"}
Expected Json (I expect credentials first)
{"ID":"123", **"credentials":"user:pass"**, "Remediation":"restart"}
code
client=pymongo.MongoClient()
db=client.Mydatabase
cursor=db.paramtable.find()
print dir(cursor)