Help sorting an array
Posted on 2011-10-28
I have an array of names that is sorted by last name. There are some names like "John Doe" and "Jason von Doe"
What I want to do is add letters of the alphabet (A-Z) above the first instance of the last name. For example, in the array the listing will look like this:
Jason von Doe
I realize I will need to create a new array with the updated format. I'm just looking for the algorithm to meet my needs.