I have a CSV file containing values like a | b | c | 8
and n | 8 | p | 4
as so on. I would like to know as to how do I sort them considering the last element in each row as the index?
Ex: sorted order for the above would be n | 8 | p | 4
and a | b | c | 8
I am using Python csv reader to read the file and want to apply Quick sort. I split the CSV with '|'
but not quite sure how do I proceed from here. Or if splitting isn't the correct thing to do? Can someone shed some light as to how I should be doing it?