* src/Sources.py: sort sources by title
svn: r1916
This commit is contained in:
parent
8c28b12035
commit
183e43f03f
@ -296,6 +296,7 @@ class SourceEditor:
|
|||||||
self.pub_field.set_text("")
|
self.pub_field.set_text("")
|
||||||
|
|
||||||
values = self.db.getSourceMap().values()
|
values = self.db.getSourceMap().values()
|
||||||
|
values.sort(by_title)
|
||||||
|
|
||||||
sel_child = None
|
sel_child = None
|
||||||
self.list = []
|
self.list = []
|
||||||
@ -373,3 +374,5 @@ class SourceEditor:
|
|||||||
EditSource.EditSource(RelLib.Source(),self.db, self.update_display)
|
EditSource.EditSource(RelLib.Source(),self.db, self.update_display)
|
||||||
|
|
||||||
|
|
||||||
|
def by_title(first,second):
|
||||||
|
return cmp(first.getTitle(),second.getTitle())
|
||||||
|
Loading…
Reference in New Issue
Block a user