From 528133d7db4c14304e24f8a5488e8437c4f33876 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Nov 2022 15:39:33 +0530 Subject: [PATCH] Content server: Fix incorrect sorting of highlights in the same paragraph --- src/pyj/read_book/cfi.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/cfi.pyj b/src/pyj/read_book/cfi.pyj index 862f72b816..537a20a6a2 100644 --- a/src/pyj/read_book/cfi.pyj +++ b/src/pyj/read_book/cfi.pyj @@ -467,7 +467,7 @@ def create_cfi_cmp(key_map): diff = a.steps[i] - b.steps[i] if diff is not 0: return diff - diff = a.length - b.length + diff = a.steps.length - b.steps.length if diff is not 0: return diff