From 20f2564df0445bd932bbcda6bef8a964e3c2032d Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 7 Mar 2014 12:34:25 -0800 Subject: [PATCH] Bug 6696: sort failure using key=glocale.sort_key Correct the call with a lambda. --- gramps/plugins/drawreport/statisticschart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/drawreport/statisticschart.py b/gramps/plugins/drawreport/statisticschart.py index 6c5ddf8b0..f428e47d3 100644 --- a/gramps/plugins/drawreport/statisticschart.py +++ b/gramps/plugins/drawreport/statisticschart.py @@ -1004,7 +1004,7 @@ class StatisticsChartOptions(MenuReportOptions): chart_types = [] for (chart_opt, tuple) in _Extract.extractors.items(): chart_types.append((_(tuple[1]), chart_opt, tuple)) - sorted_chart_types = sorted(chart_types) + sorted_chart_types = sorted(chart_types, key=lambda(x):glocale.sort_key(x[0])) for (translated_option_name, opt_name, tuple) in sorted_chart_types: if idx <= half: category_name = _("Charts 1")