Given the following AR models, I would like to sort users alphabetically by last name when given a handle to a task:
#user has_many :assignments has_many :ta
The M.G.Palmer's approach works well, however table name is involved. There is a better way to do it:
M.G.Palmer's
has_many :users, :through => :assignments, :order => [ :last_name, :first_name ]