  """
  from __future__ import unicode_literals
  
  import itertools
  from collections import namedtuple, OrderedDict
  from django.conf.urls import patterns, url
  from django.core.exceptions import ImproperlyConfigured
  from django.core.urlresolvers import NoReverseMatch
  from rest_framework import views
  from rest_framework.response import Response
 
</s> remove                 ret = OrderedDict()
 </s> add                 ret = SortedDict() </s> remove         api_root_dict = OrderedDict()
 </s> add         api_root_dict = SortedDict()
from collections import namedtuple
  """
  from __future__ import unicode_literals
  
  import itertools
from collections import namedtuple
  from django.conf.urls import patterns, url
  from django.core.exceptions import ImproperlyConfigured
  from django.core.urlresolvers import NoReverseMatch
  from rest_framework import views
  from rest_framework.response import Response
keep keep keep keep replace keep keep keep keep keep
 Used Django utils SortedDict instead of stdlib's OrderedDict for
wider compatability. 
rest_framework/routers.py