0004693: sorted list in Book Report's "Available Books" window

Patch from Paul Franklin.

svn: r16959
This commit is contained in:
Brian Matherly 2011-03-28 03:26:21 +00:00
parent 5dc824215d
commit 76217f3af2

View File

@ -412,8 +412,8 @@ class BookList(object):
return self.bookmap[name]
def get_book_names(self):
"Return a list of all the book names in the BookList"
return self.bookmap.keys()
"Return a list of all the book names in the BookList, sorted"
return sorted(self.bookmap.keys())
def set_book(self, name, book):
"""