sorting names and numbers

im trying to figure out how to sort a list of names and phone numbers in alphabetical order. the numbers are already sorted but the names need to be put in alphabetical order. i know how to print a name and a corresponding number. i just dont get how to sort it.
Topic archived. No new replies allowed.