From ada7cb037dc17416d3fe11450c2e45f598f8ef79 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 15 May 2007 12:01:25 +0000 Subject: [PATCH] Sort strings, not lists in Narrative Web combo boxes. svn: r8477 --- ChangeLog | 3 +++ src/plugins/NarrativeWeb.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c55ab03b..3ee903c11 100644 --- a/ChangeLog +++ b/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/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index 9c3fa141c..ddd956ed4 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -2620,8 +2620,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'])