How can I unique-sort a .csv file first by ID then by PRICE, and then, if possible, by DATE. Here is an example file:
"Date","other","Id","other","Price"
"01/01/2016","3","6452312546-232","a","4.5"
"01/03/2016","1","4375623416-345","b","56.25"
"01/03/2016","6","4375623416-345","c","0"
"01/03/2016","5","4375623416-345","d","0"
"02/01/2016","4","6452312546-232","e","34.21"
I want the output to sort by ID first, so that everything is grouped by ID first, then once they're grouped, sort the individual groups by PRICE, and then sort the now PRICE-sorted groups by most recent date in the group. So I'd get this as output:
"Date","other","Id","other","Price"
"02/01/2016","4","6452312546-232","e","34.21"
"01/01/2016","3","6452312546-232","a","4.5"
"01/03/2016","1","4375623416-345","b","56.25"
"01/03/2016","6","4375623416-345","c","0"
"01/03/2016","5","4375623416-345","d","0"
Is that clear? Let me know if it's not.