sort bookmark table after addition

This commit is contained in:
Qingping Hou
2012-06-06 15:35:45 +08:00
parent b76be2b87d
commit 763e2223d2

View File

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