I have a Posts
table with a lot of posts submitted at various times, and every post has a rating with it. For question's sake let's say I have all the required details in the Posts
table itself (i.e.contents
, ratings
, created_at
etc are in the Posts table).
I need an algorithm to sort the Posts intelligently based on their ratings and how recently they've been posted. I'm using MySQL backend, so a query would be appropriate.