correctly sorted, with peoplePerPhoto and groupsPerPhoto implemented