Hi im trying to write a program that sorts an array in alphabetical order and then into phone book order,
Eg input:
Jane Pascal 364756
Bob Smith 364758
Joe Bloggs 253647
The output should be:
Bloggs, Joe 253647
Pascal, Jane 364756
Smith, Bob 364758
The plan is to have each name (forename + surname) in different array's and the numbers in another and not sure how to sort them as above, any help would be great.