mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 02:23:07 +02:00
Highlights should be displayed sorted by appearance order
This commit is contained in:
parent
7db1a9d0a4
commit
bc1aa48632
1 changed files with 1 additions and 0 deletions
|
|
@ -163,6 +163,7 @@ def set_highlights(self, highlights):
|
|||
|
||||
def all_highlights(self):
|
||||
ans = [h for h in Object.values(self.highlights) if not h.removed].as_array()
|
||||
sort_annot_list(ans, highlight_get_cfi)
|
||||
return ans
|
||||
|
||||
def merge_highlights(self, highlights):
|
||||
|
|
|
|||
Loading…
Reference in a new issue