  General serializer field tests.
  """
  from __future__ import unicode_literals
  import datetime
  from decimal import Decimal
  from django.db import models
  from django.test import TestCase
  from django.core import validators
 
</s> remove             return dict(map(self.to_native, (k, v)) for k, v in value.items())
 </s> add             # Make sure we preserve field ordering, if it exists
            ret = SortedDict()
            for key, val in value.items():
                ret[key] = self.to_native(val)
            return ret
from django.utils.datastructures import SortedDict
  General serializer field tests.
  """
  from __future__ import unicode_literals
from django.utils.datastructures import SortedDict
  import datetime
  from decimal import Decimal
  from django.db import models
  from django.test import TestCase
  from django.core import validators
keep keep add keep keep keep keep keep
 serializers.Field respects ordering on dicts if it exists.  Closes #832 
rest_framework/tests/fields.py