      def get_api_root_view(self):
          """
          Return a view to use as the API root.
          """
          api_root_dict = {}
          list_name = self.routes[0].name
          for prefix, viewset, basename in self.registry:
              api_root_dict[prefix] = list_name.format(basename=basename)
  
          class APIRoot(views.APIView):
 
</s> remove                 ret = {}
 </s> add                 ret = OrderedDict() </s> remove from collections import namedtuple
 </s> add from collections import namedtuple, OrderedDict
        api_root_dict = OrderedDict()
      def get_api_root_view(self):
          """
          Return a view to use as the API root.
          """
        api_root_dict = OrderedDict()
          list_name = self.routes[0].name
          for prefix, viewset, basename in self.registry:
              api_root_dict[prefix] = list_name.format(basename=basename)
  
          class APIRoot(views.APIView):
keep keep keep keep replace keep keep keep keep keep
 Maintain order of views on router for api root view. 
rest_framework/routers.py