Content server: Fix incorrect sorting of highlights in the same paragraph

This commit is contained in:
Kovid Goyal 2022-11-23 15:39:33 +05:30
parent c6f4002892
commit 528133d7db
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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