code: def set_headers(self, headers):
          
          self.headers = []
          if 'order' in self.options:
              for element in self.options['order']:
                  for header in headers:
                      if header['key'] == element:
                          self.headers.append(header)
                          break
          else:
              self.headers = headers
docs: Set the headers of our csv writer
  
          :param list headers: list of dict with label and name key (label is
          mandatory : used for the export)