diff --git a/django/core/management/commands/dumpdata.py b/django/core/management/commands/dumpdata.py
index eecf940..1f2a2db 100644
a
|
b
|
|
1 | 1 | from django.core.exceptions import ImproperlyConfigured |
2 | 2 | from django.core.management.base import BaseCommand, CommandError |
3 | 3 | from django.core import serializers |
| 4 | from django.utils.datastructures import SortedDict |
4 | 5 | |
5 | 6 | from optparse import make_option |
6 | 7 | |
… |
… |
class Command(BaseCommand):
|
27 | 28 | excluded_apps = [get_app(app_label) for app_label in exclude] |
28 | 29 | |
29 | 30 | if len(app_labels) == 0: |
30 | | app_list = dict([(app, None) for app in get_apps() if app not in excluded_apps]) |
| 31 | app_list = SortedDict([(app, None) for app in get_apps() if app not in excluded_apps]) |
31 | 32 | else: |
32 | | app_list = {} |
| 33 | app_list = SortedDict() |
33 | 34 | for label in app_labels: |
34 | 35 | try: |
35 | 36 | app_label, model_label = label.split('.') |