Much less time consuming to instead perform it twice, using grouping.

Do it the first time with say, 26 different photos, sorting from first letter of last name. Then do the same thing again for each person falling into the group. Seems much more reasonable of a task in that way.