Order of app_store items should mirror INSTALLED_APPS
|Reported by:||phuihock||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.0|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
An app triggered _populate call (while loading apps the first time) will alter the order of the models in app_store dictionary, in a way that is different than the order as declared in INSTALLED_APPS. For example, when INSTALLED_APPS = [a, b, c], and a has a call to get_model(c.models.x), the return value of get_apps() is [a, c, b].
The order of the apps, as returned by get_apps(), should mirror INSTALLED_APPS so that the initial data (the primary keys) of auth_permission and django_content_type are not altered when new app is appended to INSTALLED_APPS.