I have a struct where data is defined as:
typedef struct contacts
{
string name;
string nickName;
string phoneNumber;
string carrier;
string address;
//callDetails callDetails;
} contactDetails;
vector <contactDetails> proContactFile;
I have like 10 -20 fields of information inside the vector.
I need to bubble sort the name(Alphabetically),and display other respective data infront of name.(As an example after sorting a names i want to display the respective nickname , phone number ,carrier and address infront of that sorted name.) Is there a simple way to do it?