def _get__cmp__items(self):
items = []<EOL>if self._optimized:<EOL><INDENT>items.append(self._all_decls_not_recursive.sort())<EOL><DEDENT>else:<EOL><INDENT>items.append(self.declarations.sort())<EOL><DEDENT>items.extend(self._get__cmp__scope_items())<EOL>return items<EOL>
implementation details