diff --git a/ChangeLog b/ChangeLog index d1246df9a..20ce8fb4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-09-30 Brian Matherly + * src/plugins/NarrativeWeb.py: 0001238: Web report: sort references for + places and media + 2007-09-30 Brian Matherly * src/ReportBase/_ReportDialog.py: 0001253: Calendar report crashes without margins entered. diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index ddb32c7fd..4925ef9c1 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -38,6 +38,7 @@ import locale import shutil import codecs import tarfile +import operator from gettext import gettext as _ from cStringIO import StringIO from textwrap import TextWrapper @@ -565,9 +566,11 @@ class BasePage: of.write('
\n') of.write('

%s

\n' % _('References')) of.write('\n') + + sortlist = sorted(handlelist, key=operator.itemgetter(1)) index = 1 - for (path,name,gid) in handlelist: + for (path,name,gid) in sortlist: of.write('\n')
%d. ' % index) self.person_link(of,path,name,gid) of.write('