From 13b4f939a72b5d97968c007a6c0eff2e7f7780b9 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sun, 24 Apr 2016 22:33:22 +0200 Subject: [PATCH] 9405: Narrated Web report - Individual sort order not correct on the Surnames tab --- gramps/plugins/webreport/narrativeweb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 77f55cc07..64e79c919 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -2973,7 +2973,8 @@ class SurnamePage(BasePage): tbody = Html("tbody") table += tbody - for person_handle in ppl_handle_list: + for person_handle in sorted(ppl_handle_list, + key=lambda x: sort_on_name_and_grampsid(x, self.dbase_)): person = self.dbase_.get_person_from_handle(person_handle) if person.get_change_time() > ldatec: ldatec = person.get_change_time()