# File lib/symetrie_com/acts_as_better_nested_set.rb, line 914 def reorder_children(*ids) transaction do ordered_ids = ids.flatten.uniq current_children = children({ :conditions => { :id => ordered_ids } }) current_children_ids = current_children.map(&:id) ordered_ids = ordered_ids & current_children_ids return [] unless ordered_ids.length > 1 && ordered_ids != current_children_ids perform_reorder_of_children(ordered_ids, current_children) end end