Highlights in viewer are not sorted correctly

Bug #1918436 reported by George Huang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Highlights/annotations are not sorted by order in which they appear in the book. Instead, they are listed rather randomly. A book with highlights saved inside is attached.

Revision history for this message
George Huang (eternallogger) wrote :
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote :

Looks correct for me, see attached screenshot. What calibre version and operating system are you on?

Changed in calibre:
status: New → Incomplete
Revision history for this message
George Huang (eternallogger) wrote :

My main machine is a headless Calibre 5.13.0 on a VPS running Ubuntu. Can you try opening the book with Content Server's viewer? It could be more obvious.

Revision history for this message
George Huang (eternallogger) wrote :

Attached can be a more obvious example (sorry it's in Chinese). I opened it with E-book viewer running on macOS Big Sur, and highlights are also not in order.

Please go to the first chapter (「第一章 那邊」) and the second chapter (「第二章 陌生語言」). In the first chapter, there are only two highlights, and they are reversely listed on my machine. In the second chapter, the order of highlights appear to be at random.

Revision history for this message
Georg (geo1481) wrote :

I can confirm that this problem occurs when reading an epub in a browser via the Calibre 5.13 Content server. Annotations do neither show in the order in which they occur in the epub, nor in the order in which they are made. Tested with serveral epub files in Safari 14 and Chrome 87 on iOS and iPadOS 14.4, and on Safari 14.0.3 on macOS 10.15.7. The problem also replicates with the Siddhartha epub linked above.

For me this problem does not occur when directly using Calibre ebook viewer (on macOS 10.15.7).

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers