Comment feed page
Design the comment feed page for a community app. Constraints: comments are shown flat (no tree), globally sorted by an interaction weight (likes, reply count), and the first screen loads automatically. Given that the sort criterion keeps changing, how would you design the server data structure and the pagination?