2003-11-05 Tim Waugh <twaugh@redhat.com>

* src/plugins/FilterEditor.py (ShowResults.__init__): Sort
        results.


svn: r2317
This commit is contained in:
Tim Waugh 2003-11-05 10:58:16 +00:00
parent 570e4a1102
commit d570b0fd56
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-11-05 Tim Waugh <twaugh@redhat.com>
* src/plugins/FilterEditor.py (ShowResults.__init__): Sort
results.
2003-11-03 Tim Waugh <twaugh@redhat.com>
* src/plugins/WriteGedcom.py (GedcomWriter.write_families): Use

View File

@ -28,6 +28,7 @@ __author__ = "Don Allingham"
#
#-------------------------------------------------------------------------
import os
import string
#-------------------------------------------------------------------------
#
@ -591,11 +592,12 @@ class ShowResults:
self.glade.signal_autoconnect({'on_close_clicked' : self.close})
n = ""
n = []
for p in plist:
n = n + "%s [%s]\n" % (p.getPrimaryName().getName(),p.getId())
n.append ("%s [%s]\n" % (p.getPrimaryName().getName(),p.getId()))
text.get_buffer().set_text(n)
n.sort ()
text.get_buffer().set_text(string.join (n, ''))
def close(self,obj):
self.top.destroy()