From 391c0a3576624655b602445f86cdae59057ca5bf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 Sep 2010 17:34:44 -0600 Subject: [PATCH] Fix #6847 (Author Sort) --- src/calibre/library/caches.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/library/caches.py b/src/calibre/library/caches.py index 4f795ab733..211baeb634 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -589,9 +589,9 @@ class ResultCache(SearchQueryParser): if field not in self.field_metadata.iterkeys(): if field in ('author', 'tag', 'comment'): field += 's' - if field == 'date': field = 'timestamp' - elif field == 'title': field = 'sort' - elif field == 'authors': field = 'author_sort' + if field == 'date': field = 'timestamp' + elif field == 'title': field = 'sort' + elif field == 'authors': field = 'author_sort' return field def sort(self, field, ascending, subsort=False):