title: How to sort a CSV file alphabetically?
body: <p>This is my code that adds the data to the CSV file known as studentScores.csv</p>
  
  <pre><code>myfile = open("studentScores.csv", "a+")
  
  newRecord = Score, Name, Gender, FormGroup, Percentage
  
  myfile.write(str(newRecord))
  
  myfile.write("\n")
  
  myfile.close()
  </code></pre>
  
  <p>As a part of my task, I need to alphabetise the data in the CSV, I have searched, and searched for a solution, but I am unable to find a working solution for me. I am pretty new to Python, so the simplest solution will be appreciated.</p>