code: def get_params(self, ctx):
          
          self.params.sort(key=self.custom_sort)
          return super(ClickGroup, self).get_params(ctx)
docs: Sort order of options before displaying.
  
          :param click.core.Context ctx: Click context.
  
          :return: super() return value.