diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index d3b94f99f..9caeb79b4 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -1536,7 +1536,7 @@ class SurnameListPage(BasePage): index_val = "%90d_%s" % (999999999-len(data_list), surname) temp_list[index_val] = (surname, data_list) temp_keys = temp_list.keys() - temp_keys.sort() + temp_keys.sort(locale.strcoll) person_handle_list = [] for key in temp_keys: person_handle_list.append(temp_list[key]) @@ -1552,7 +1552,7 @@ class SurnameListPage(BasePage): # the surname letter = normalize('NFKC', surname)[0].upper() - if letter is not last_letter: + if letter != last_letter: last_letter = letter of.write('\t\t