def order_manually(sub_commands):
order = [<EOL>"<STR_LIT:start>",<EOL>"<STR_LIT>",<EOL>]<EOL>ordered = []<EOL>commands = dict(zip([cmd for cmd in sub_commands], sub_commands))<EOL>for k in order:<EOL><INDENT>ordered.append(commands.get(k, "<STR_LIT>"))<EOL>if k in commands:<EOL><INDENT>del commands[k]<EOL><DEDENT><DEDENT>for k in commands:<EOL><INDENT>ordered.append(commands[k])<EOL><DEDENT>return ordered<EOL>
Order sub-commands for display