iLanguage/iField — pull request #321 by trisapeace (2012-07-13 15:42:11+00:00)
Title: Datum Sorted by dateModified instead of dateCreated

@cesine Can you please merge this one and then redeploy the server?

I made a change to restfullmongooseusers.js, so in order to work with new uses you'll need to redeploy the server first, and in order to work with existing users you'll need to replace _design/get_datum_ids's map with

"map": "function (doc) {if (doc.dateModified) {emit(doc.dateModified, doc);}}"

and add a dateModified field to all its Datum (easiest just to copy the value of dateEntered).

I've already modified the Import code so that it will now add a dateModified to the datum.