17
ldwall
7y

Expectation: rants.sort((rantA, rantB) => rantA.votes - rantB.votes);

Reality: rants.sort((rantA, rantB) => (rantA.votes - 0.5) + Math.random());

What??

Comments
  • 3
    I also noticed a weird thing with the pagination.

    Sometimes after clicking on "more rants", I get the last 1-2 posts from the previous page displayed on the top.
Add Comment