def normalize(self):<EOL>
ordered_namespaces = OrderedDict()  <EOL>for namespace_name in sorted(self.namespaces.keys()):<EOL><INDENT>ordered_namespaces[namespace_name] = self.namespaces[namespace_name]<EOL><DEDENT>self.namespaces = ordered_namespaces<EOL>for namespace in self.namespaces.values():<EOL><INDENT>namespace.normalize()<EOL><DEDENT>
Alphabetizes namespaces and routes to make spec parsing order mostly
irrelevant.