code: def format_for_baseline_output(self):
          
          results = self.json()
          for key in results:
              results[key] = sorted(results[key], key=lambda x: x['line_number'])
  
          plugins_used = list(map(
              lambda x: x.__dict__,
              self.plugins,
          ))
          plugins_used = sorted(plugins_used, key=lambda x: x['name'])
  
          return {
              'generated_at': strftime("%Y-%m-%dT%H:%M:%SZ", gmtime()),
              'exclude': {
                  'files': self.exclude_files,
                  'lines': self.exclude_lines,
              },
              'plugins_used': plugins_used,
              'results': results,
              'version': self.version,
          }
docs: :rtype: dict