From 120659862036b9d60a167ef4925cc7181c1085ed Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 13 Dec 2009 01:04:09 +0000 Subject: [PATCH] Sorts event by ID, date svn: r13779 --- src/plugins/webreport/NarrativeWeb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 19f861118..6a7a8979e 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -6089,6 +6089,9 @@ def sort_event_types(db, event_types, event_handle_list): (event.gramps_id, event.get_date_object(), handle) ) + for tup_list in event_dict.values(): + tup_list.sort() + # return a list of tuples, one per event return ( (event_type, event_list) for (event_type, event_list) in event_dict.iteritems() )