DB-API: get_family_handles(sort_handles) add given to sort order

This commit is contained in:
Doug Blank 2016-04-16 03:53:16 -04:00
parent ac1ccfa2b4
commit f0e27af884

View File

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