Sorts event by ID, date

svn: r13779
This commit is contained in:
Doug Blank 2009-12-13 01:04:09 +00:00
parent 58dc389e48
commit 1206598620

View File

@ -6089,6 +6089,9 @@ def sort_event_types(db, event_types, event_handle_list):
(event.gramps_id, event.get_date_object(), handle) (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 a list of tuples, one per event
return ( (event_type, event_list) for (event_type, event_list) in event_dict.iteritems() ) return ( (event_type, event_list) for (event_type, event_list) in event_dict.iteritems() )