get_family_handles with sort_handles

This commit is contained in:
Doug Blank 2016-04-20 07:18:30 -04:00
parent 605aab85fd
commit d3328826ec

View File

@ -370,8 +370,7 @@ class DBAPI(DbGeneric):
if sort_handles:
self.dbapi.execute("""SELECT DISTINCT family.handle FROM family
JOIN person
ON (family.father_handle = person.handle OR
family.mother_handle = person.handle)
ON family.father_handle = person.handle
ORDER BY person.primary_name__surname_list__0__surname,
person.primary_name__first_name;""")
else: