mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
sort bookmark table after addition
This commit is contained in:
@@ -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