  from django import forms
  from django.forms import widgets
  from django.utils.encoding import is_protected_type
  from django.utils.translation import ugettext_lazy as _
  
  from rest_framework import ISO_8601
  from rest_framework.compat import timezone, parse_date, parse_datetime, parse_time
  from rest_framework.compat import BytesIO
 
</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
  from django import forms
  from django.forms import widgets
  from django.utils.encoding import is_protected_type
  from django.utils.translation import ugettext_lazy as _
from django.utils.datastructures import SortedDict
  
  from rest_framework import ISO_8601
  from rest_framework.compat import timezone, parse_date, parse_datetime, parse_time
  from rest_framework.compat import BytesIO
keep keep keep add keep keep keep keep
 serializers.Field respects ordering on dicts if it exists.  Closes #832 
rest_framework/fields.py