I'm having a problem figuring out a part of my newest assignment for class. I'm suppose to use structures to create a database phone number list with first and last name.
The problem I'm having to figure out is trying to sort and print from the first name or from the last name. Could some give me an example of an algorithm? For the first name, I would only have to look at the first element (first letter of the name), and then compare it with the other phone list entries. But how would I keep track and put them in order from A-Z?
Can anyone help?