Sort events by alphabetical type name
svn: r13823
This commit is contained in:
parent
18eff92c76
commit
2a047ab65e
@ -6096,8 +6096,10 @@ def sort_event_types(db, event_types, event_handle_list):
|
|||||||
for tup_list in event_dict.values():
|
for tup_list in event_dict.values():
|
||||||
tup_list.sort()
|
tup_list.sort()
|
||||||
|
|
||||||
# return a list of tuples, one per event
|
# return a list of sorted tuples, one per event
|
||||||
return ( (event_type, event_list) for (event_type, event_list) in event_dict.iteritems() )
|
retval = [(event_type, event_list) for (event_type, event_list) in event_dict.iteritems()]
|
||||||
|
retval.sort(key=lambda item: str(item[0]))
|
||||||
|
return retval
|
||||||
|
|
||||||
# Modified _get_regular_surname from WebCal.py to get prefix, first name, and suffix
|
# Modified _get_regular_surname from WebCal.py to get prefix, first name, and suffix
|
||||||
def _get_short_name(gender, name):
|
def _get_short_name(gender, name):
|
||||||
|
Loading…
Reference in New Issue
Block a user