I am creating a rails 3 application.
It has Groups (like social groups with memebers and so on and members can post on groups).
So my model is Group and Post, and group has_many posts (each of them (posts) obviously have group_id).
I am trying to figure out, how to get a list of groups sorted by the most recent post, including groups without any posts.
Thanks!
Depending on what columns you have, it could be something like