mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Highlights should be displayed sorted by appearance order
This commit is contained in:
parent
7db1a9d0a4
commit
bc1aa48632
@ -163,6 +163,7 @@ class AnnotationsManager: # {{{
|
|||||||
|
|
||||||
def all_highlights(self):
|
def all_highlights(self):
|
||||||
ans = [h for h in Object.values(self.highlights) if not h.removed].as_array()
|
ans = [h for h in Object.values(self.highlights) if not h.removed].as_array()
|
||||||
|
sort_annot_list(ans, highlight_get_cfi)
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
def merge_highlights(self, highlights):
|
def merge_highlights(self, highlights):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user