Sort a CSV file by ID