parameters: (self, ctx)
return_statement: return (c[1] for c in sorted(
              (self.help_priorities.get(command, DEFAULT_CMD_PRIORITY), command)
              for command in commands))
docstring: reorder the list of commands when listing the help
docstring_summary: reorder the list of commands when listing the help
docstring_tokens: reorder the list of commands when listing the help
function: def list_commands_for_help(self, ctx):
          """reorder the list of commands when listing the help"""
          commands = super(SpecialHelpOrder, self).list_commands(ctx)
          return (c[1] for c in sorted(
              (self.help_priorities.get(command, DEFAULT_CMD_PRIORITY), command)
              for command in commands))
function_tokens: def list_commands_for_help ( self , ctx ) : commands = super ( SpecialHelpOrder , self ) . list_commands ( ctx ) return ( c [ 1 ] for c in sorted ( ( self . help_priorities . get ( command , DEFAULT_CMD_PRIORITY ) , command ) for command in commands ) )