code: def normalize(self):
          # type: () -> None
          
          ordered_namespaces = OrderedDict()  # type: NamespaceDict
          # self.namespaces is currently ordered by declaration order.
          for namespace_name in sorted(self.namespaces.keys()):
              ordered_namespaces[namespace_name] = self.namespaces[namespace_name]
          self.namespaces = ordered_namespaces
  
          for namespace in self.namespaces.values():
              namespace.normalize()
docs: Alphabetizes namespaces and routes to make spec parsing order mostly
          irrelevant.