9347: Places index + Media index are incorrectly sorted
This commit is contained in:
parent
9887e6376d
commit
cfeb97a524
@ -4450,7 +4450,7 @@ class MediaPages(BasePage):
|
||||
len(self.report.obj_dict[MediaObject]) + 1) as step:
|
||||
# bug 8950 : it seems it's better to sort on desc + gid.
|
||||
def sort_by_desc_and_gid(obj):
|
||||
return (obj.desc, obj.gramps_id)
|
||||
return (obj.desc.lower(), obj.gramps_id)
|
||||
|
||||
sorted_media_handles = sorted(self.report.obj_dict[MediaObject].keys(),
|
||||
key=lambda x: sort_by_desc_and_gid(self.report.database.get_object_from_handle(x)))
|
||||
|
Loading…
Reference in New Issue
Block a user