Arrange a tree or part of it into an ordered hash is a piece a closure_tree user will never regret to have. The Ancestry project approaches to it in [a very useful way](https://github.com/stefankroes/ancestry#arrangement).