Acts_as_tree order option

Hello all,

I’d like to order a model which acts as a tree by an attribute belonging
an associated model.

Model A has many B.
In A, I have the declaration acts_as_tree :order => “name” where name is
attribute of B.

Does anybody know how I can achieve this ?


Johan Duflost
Analyst Programmer
Belgian Biodiversity Platform (
Belgian Federal Science Policy Office ( )
Tel:+32 2 650 5751 Fax: +32 2 650 5124