i need hints on how to sort a 2-d array of chars of the following format.

char names[100][40]

strings input as "last name,first name,age"

i need to be able to sort by 1) last name, 2) first...