title: Formatting a csv file I'm sorting
body: <p>I'm currently sorting a csv file. As far as my output, its correct but it isn't properly formatted. The following is the file I'm sorting
  <a href="https://i.stack.imgur.com/lUiDH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lUiDH.png" alt="enter image description here"></a></p>
  
  <p>And here is the output after I sort (I'll include the code after the image)
  <a href="https://i.stack.imgur.com/L0uLu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L0uLu.png" alt="enter image description here"></a></p>
  
  <p>Obviously I'm having a delimiter issue, but here is my code:</p>
  
  <pre><code>with open(out_file, 'r') as unsort:##Opens OMI Data
      with open(Pandora_Sorted,'w') as sort:##Opens file to write to
          for line in unsort:
              if "Datetime" in line:##Searches lines
                  writer=csv.writer(sort, delimiter = ',')
                  writer.writerow(headers)##Writes header
              elif "T13" in line:
                  writer=csv.writer(sort)
                  writer.writerow(line)##Writes to output file
  </code></pre>