mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
bcb501b6de
commit
26ecfcf28a
@ -277,8 +277,8 @@ class Highlights(QTreeWidget):
|
|||||||
|
|
||||||
def cfi_key(h):
|
def cfi_key(h):
|
||||||
cfi = h.get('start_cfi')
|
cfi = h.get('start_cfi')
|
||||||
si = h.get('spine_index')
|
si = h.get('spine_index', defval[0])
|
||||||
return (defval[0] if si is None else si, cfi_sort_key(cfi)) if cfi else defval
|
return (si, cfi_sort_key(cfi)) if cfi else defval
|
||||||
|
|
||||||
return sorted(highlights, key=cfi_key)
|
return sorted(highlights, key=cfi_key)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user