# File lib/ancestry/class_methods.rb, line 31 def arrange options = {} scope = if options[:order].nil? self.base_class.ordered_by_ancestry else self.base_class.ordered_by_ancestry_and options.delete(:order) end # Get all nodes ordered by ancestry and start sorting them into an empty hash arrange_nodes scope.all(options) end