I have a large csv file in the format e.g.
POBOX,DEPT,ORGNAME,SUBBNAME,BUILDING,BNUM,STREET,LOCALITY,TOWN,COUNTY,POSTCODE,ID
,,,,,20,A STREET,,EXETER,DEVON,EX1 2SP,10013036001
,,,FLAT 0,,100,ALPHO ROAD,,EXETER,DEVON,EX2 8JD,10013036004
,,,JANB,,100,ALPHO ROAD,,EXETER,DEVON,EX2 8HZ,10013036003
,,,,,2A,BLACKHALL ROAD,,EXETER,DEVON,EX4 4HE,
,,,,,300,FOR STREET,HEAVITREE,EXETER,DEVON,EX1 2QN,
I have manually sorted this file by the column ID (the last column) in Excel and saved it. I would like to write a python method to open the file and sort it by the column id and then write it back to the file, save it. Is this possible?
Riaz