mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix problem with sorting in collections
This commit is contained in:
parent
9dd662ac0b
commit
d9cd3fd0b0
@ -237,7 +237,10 @@ class CollectionsBookList(BookList):
|
||||
return 1
|
||||
if y is None:
|
||||
return -1
|
||||
c = cmp(sort_key(x), sort_key(y))
|
||||
if isinstance(x, unicode):
|
||||
c = cmp(sort_key(x), sort_key(y))
|
||||
else:
|
||||
c = cmp(x, y)
|
||||
if c != 0:
|
||||
return c
|
||||
# same as above -- no sort_key needed here
|
||||
|
Loading…
x
Reference in New Issue
Block a user