I have models User and Violation. User has_many violations, violation belongs_to user. I wrote scope, for default sorting use
User
Violation
User has_many violations
violation belongs_to user