I think you need to import the CSV into the calc part of libre office. (spreadsheet)
https://help.libreoffice.org/Calc/Im...ting_CSV_Files
Then Format your rows which so you have spacing etc.
http://www.techrepublic.com/blog/tr-...reoffice-calc/
Then you want to sort.
https://help.libreoffice.org/Calc/Sort_Criteria
Best to save before sorting as it can take a couple of tries if you are new to spreadsheets
Helen