def get_summaries(ordered=True):
if ordered:<EOL><INDENT>cmditems = _sort_commands(commands_dict, commands_order)<EOL><DEDENT>else:<EOL><INDENT>cmditems = commands_dict.items()<EOL><DEDENT>for name, command_class in cmditems:<EOL><INDENT>yield (name, command_class.summary)<EOL><DEDENT>
Yields sorted (command name, command summary) tuples.