Basic operations on CSV files to sort and format their data