Fix sorting problems (author_sort)

This commit is contained in:
Charles Haley 2010-09-17 23:17:25 +01:00
parent ade36c94fa
commit 6d2c0268da

View File

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