I'm new to C++ and I need advice as to how I go about doing this...
I have a data file with the following format.
FIRSTNAME CLASTNAME INTVALUE INTVALUE
FIRSTNAME ALASTNAME INTVALUE INTVALUE
FIRSTNAME BLASTNAME INTVALUE INTVALUE
What I'm trying to do...
ALASTNAME FIRSTNAME INTVALUE INTVALUE
BLASTNAME FIRSTNAME INTVALUE INTVALUE
CLASTNAME FIRSTNAME INTVALUE INTVALUE
How would I go about sorting it by last name while still retaining the data that belongs to each person? So far I've only been able to sort the last name alone but that doesn't help because I don't have to rest of the data...