Problem displaying newest comments
-
I’ve noticed there is a problem when you set the sorting order on comments to newest so it displays the most recent comments first, it still breaks them into pages based on oldest comments first.
For example if you had 10 comments per page and there are 13 comments total.
When displaying oldest comments first it will display them as this:
Page 1: 1 2 3 4 5 6 7 8 9 10
Page 2: 11 12 13When displaying newest comments first it will display them like this:
Page 1: 13 12 11
Page 2: 10 9 8 7 6 5 4 3 2 1As you can see it displays them in descending order with newest comments first. However it is putting only 3 comments on “Page 1” and then 10 comments on “Page 2”.
It should display like this:
Page 1: 13 12 11 10 9 8 7 6 5 4
Page 2: 3 2 1Is there any solution to this? Seems like a problem with sorting the results in the MySQL query.
- The topic ‘Problem displaying newest comments’ is closed to new replies.