Reorder branches