optimize imports
be explicit about accessing .id vs ['id']

due to jsonobject strictness
Merge pull request #1390 from dimagi/export-app-sorting-fix

Export app sorting fix