for author in sorted(books_by_author):
grid.SetCellAlignment(row, 1, wx.ALIGN_LEFT, wx. ALIGN_CENTRE)
grid.SetCellSize(row, 1, 1, len(columns)-1)
grid.SetCellValue(row, 1, u'%s' % (author,))
for author in sorted(books_by_author):
grid.SetCellAlignment(row, 1, wx.ALIGN_LEFT, wx. ALIGN_CENTRE)
grid.SetCellSize(row, 1, 1, len(columns)-1)
grid.SetCellValue(row, 1, u'%s' % (author,))