I have a .csv file of data which has the following format:
int,string,float,float,float,float, where the string is always 3 characters.
I want to read the file in and sort column 5 relative to column 1.
i.e.
1,b,1.11,2.22,3.33,200.00
3,c,1.11,2.22,3.33,100.00
becomes
3,c,1.11,2.22,3.33,100.00
1,b,1.11,2.22,3.33,200.00
etc.
I'm a novice programmer and I don't quite understand structures that well. I've read that passing poiinters to a structure will work but I'm not sure how to do it.