Skip to content

Commit

Permalink
sort bookmark table after addition
Browse files Browse the repository at this point in the history
  • Loading branch information
houqp committed Jun 6, 2012
1 parent b76be2b commit 763e222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unireader.lua
Expand Up @@ -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
Expand Down

0 comments on commit 763e222

Please sign in to comment.