I'm stumped in regards to sorting two different types of arrays. My goal is to output from the below code:
Bob
Bob 0
Joe 40
Sue 100
Joe
Joe 0
Bob 40
Sue 60
Sue
Sue 0
Joe 60
Bob 100
Essentially, I need the outer for loop to be alphabetically sorted (hence the alphasort function) and the inner for loop to sort the values in an increasing order as well as display the names of the differences performed. I can't seem to figure out how to accomplish my goal.