mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-24 05:43:12 +02:00
Implement sub-sorting
This commit is contained in:
parent
46f9ce9445
commit
16d268de60
1 changed files with 4 additions and 1 deletions
|
|
@ -857,7 +857,10 @@ def refresh(self, sort_field, ascending):
|
|||
sort = field + ' ' + order
|
||||
if field == 'series':
|
||||
sort += ',series_index '+order
|
||||
|
||||
elif field == 'title':
|
||||
sort += ',author_sort ' + order
|
||||
else:
|
||||
sort += ',title '+order
|
||||
|
||||
self.cache = self.conn.execute('SELECT * from meta ORDER BY '+sort).fetchall()
|
||||
self.data = self.cache
|
||||
|
|
|
|||
Loading…
Reference in a new issue