MongoEngine/flask-mongoengine — pull request #100 by georgeberry (2014-07-01 01:08:36+00:00)
Title: preserve order of fields in model declaration

I was running into the problem of flask-mongoengine resorting my model fields (e.g. putting "Body" before "Title"). I added a line of code to fix this and preserve the original order from model._fields (perhaps model._fields_ordered would work better?).