mirror of
https://github.com/koreader/koreader.git
synced 2026-11-27 06:43:01 +00:00
sort bookmark table after addition
This commit is contained in:
1 parent
b76be2b87d
commit
763e2223d2
1 file changed
+1
@@ -1466,6 +1466,7 @@ function UniReader:addBookmark(pageno)
|
||||
notes = notes,
|
||||
}
|
||||
table.insert(self.bookmarks, mark_item)
|
||||
table.sort(self.bookmarks, function(a,b) return a.page < b.page end)
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user