move folder array to the top of file