Is possible to order a nested model?

Hey,

if the parent_id for your root(s) is 0 then you don't have to alter records in your database, just change the last line of the method I gave you to this:

records_by_parent[0].inject(, &collector)

Trevor