Rearranges folders.