get_family_handles with sort_handles
This commit is contained in:
parent
605aab85fd
commit
d3328826ec
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user