I have this section in my site that I want to build, “Hot announcements”
i.e. the latest 4 announcements that have lots of comments, ordered in a
descending fashion.
What I want to do is only get the top 4 from the database, and in the
necessary order. Normally, I would’ve just done it in ruby since its
easier, but I decided to try and do it properly this time
I have this section in my site that I want to build, “Hot announcements”
i.e. the latest 4 announcements that have lots of comments, ordered in a
descending fashion.
What I want to do is only get the top 4 from the database, and in the
necessary order. Normally, I would’ve just done it in ruby since its
easier, but I decided to try and do it properly this time