diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 12f73fe4b..2103452be 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2007-05-15 Brian Matherly + * src/plugins/NarrativeWeb.py: Sort strings, not lists. + 2007-05-15 Brian Matherly * src/DataViews/_PedigreeView.py: catch possible crash diff --git a/gramps2/src/plugins/NarrativeWeb.py b/gramps2/src/plugins/NarrativeWeb.py index 54d9140b7..15cc5f4de 100644 --- a/gramps2/src/plugins/NarrativeWeb.py +++ b/gramps2/src/plugins/NarrativeWeb.py @@ -2640,8 +2640,8 @@ class WebReportOptions(ReportOptions): data = cursor.next() cursor.close() - media_list.sort(strcoll_case_sensitive) - html_list.sort(strcoll_case_sensitive) + media_list.sort(lambda x, y: strcoll_case_sensitive(x[0], y[0])) + html_list.sort(lambda x, y: strcoll_case_sensitive(x[0], y[0])) self.home_note = mk_combobox(media_list,self.options_dict['NWEBhomenote']) self.intro_note = mk_combobox(media_list,self.options_dict['NWEBintronote'])