From 6d2c0268daf595fb87bdf31c1594c5ce774aba58 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Fri, 17 Sep 2010 23:17:25 +0100 Subject: [PATCH] Fix sorting problems (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):