cabennett85/gittest — Issue #618: story comments sorting bug
Author: cabennett85
Created: 2012-03-02 00:02:26+00:00
State: open

Like I always do when returning to a story I immediately change the order to "latest", wait impatiently for the page to reload, and then start reading comments 50 through 41. Still no problem (except that "latest" should be the default when I return to a story I've read before!).

When I get to the bottom I click on the page 2 link, which is supposed to show me comments 40 through 31. WRONG! I've never paid attention before but I just noticed that EP failed to change the page links on "latest" pages into "latest" order!! They're still in "earliest" order!!!

So instead of comments 40 through 31 in "latest" order I'm unexpectedly being shown comments 11 through 20 in "earliest" order!!!!

Another related problem is at the bottom of the "latest" page 1 where it says "1-10 of 50 comments" when it should say "50-41 of 50 comments".

I thought maybe you were only reversing the order of one page of comments at a time (which would be wrong but interesting). So I went to "earliest" page 2 where it says "11-20 of 50 comments. Then I switched to "latest" order to see if would show me page 2 in "latest" order but instead it went back to page 1 in "earliest" order. So even that (mis)behavior is broken.