mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f0ac7c0653
commit
6595e00a19
@ -32,8 +32,8 @@ def sort_annot_list(annots, get_cfi_func):
|
||||
key_map[cfi] = cfi_sort_key(cfi)
|
||||
cfi_cmp = create_cfi_cmp(key_map)
|
||||
annots.sort(def (a, b):
|
||||
acfi = get_cfi_func(a) or no_cfi
|
||||
bcfi = get_cfi_func(b) or no_cfi
|
||||
acfi = get_cfi_func(a)
|
||||
bcfi = get_cfi_func(b)
|
||||
return cfi_cmp(acfi, bcfi)
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user