code: def add_arguments(self, actions):
          
          actions = sorted(
              actions, key=operator.attrgetter('option_strings'))
          super(SortedHelpFormatter, self).add_arguments(actions)
docs: Sort the flags alphabetically