The CMS I'm using paginates user comments. I set it to show 5 comments per page with the latest comments on top. And I have 11 comments. And show the last page first.
Currently, this is what the CMS does:
Page 1 shows comments 5, 4, 3, 2, 1
Page 2 shows comments 10, 9, 8, 7, 6
Page 3 shows comment 11
Here's the problem, since I told the CMS that I want to show latest comments first and last page first, it shows page 3 first, so the user only sees 11. To see the rest of the comment, user has to click on "See older comments ->" to go to page 2, etc.
The behavior I'd rather have is this:
Page 1 shows comment 1
Page 2 shows comments 6, 5, 4, 3, 2
Page 3 shows comments 11, 10, 9, 8, 7
Here's the code that needs to be fixed: [
pastebin.mozilla.org...]