pokonski/public_activity — pull request #75 by galetahub (2013-02-16 19:21:19+00:00)
Title: Create named scope "sorted", which sorts records from db

It's good if you don't know what is a PublicActivity::Activity class.
Class PublicActivity::Activity can be ActiveRecord::Base or Mongoid Document, so it's good to use one method "sorted":
``` ruby
PublicActivity::Activity.sorted.includes(:owner, :trackable, :recipient)
```

This code works in both orm's.