To reproduce this bug, make a post and add over twenty comments, with a number in each one so you can tell in which order you entered them. Log in as a different user and upvote a few of the oldest ones. Then scroll to the top and set the sort order to "new", and scroll down. After you scroll past the oldest comment, some of the newer ones will repeat below it.
Fix by passing the sort order parameter in all the calls to renderComments.
To reproduce this bug, make a post and add over twenty comments, with a number in each one so you can tell in which order you entered them. Log in as a different user and upvote a few of the oldest ones. Then scroll to the top and set the sort order to "new", and scroll down. After you scroll past the oldest comment, some of the newer ones will repeat below it.
Fix by passing the sort order parameter in all the calls to
renderComments
.