reorder_child() moves the child's position in the children array to the position given as the second parameter.