I just implemented a user overview of mixed posts and comments, but I’m unsure how to do so while respecting sort (hot, new, old, etc.). Currently I merge the user’s comments and posts into a list, then sort them all by timestamp.

Because sorting is handled on the server, and merging posts/comments happens after, I can’t see how I can’t respect sort and still merge the two sets. Does anyone have any pointers?

I expect a similar issue would arise for the unified inbox view also (replies, mentions, and private messages), although in that case there’s less need to sort by anything other than recency.