Rearranges order of panels