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

Patch from Paul Franklin.

svn: r16960
This commit is contained in:
Brian Matherly 2011-03-28 03:30:11 +00:00
parent be3fb894e3
commit 4cfc21befd

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):
"""